Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2b59b7e

Browse files
committed
fix clippy
1 parente7661fd commit2b59b7e

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

‎postgres-types/src/lib.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
#![warn(clippy::all, rust_2018_idioms, missing_docs)]
110110

111111
use fallible_iterator::FallibleIterator;
112-
use postgres_protocol;
113112
use postgres_protocol::types::{self,ArrayDimension};
114113
use std::any::type_name;
115114
use std::borrow::Cow;

‎tokio-postgres/tests/test/types/geo_types_04.rs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async fn test_point_params() {
88
"POINT",
99
&[
1010
(Some(Point::new(0.0,0.0)),"POINT(0, 0)"),
11-
(Some(Point::new(-3.14,1.618)),"POINT(-3.14, 1.618)"),
11+
(Some(Point::new(-3.2,1.618)),"POINT(-3.2, 1.618)"),
1212
(None,"NULL"),
1313
],
1414
)
@@ -22,13 +22,13 @@ async fn test_box_params() {
2222
&[
2323
(
2424
Some(Rect{
25-
min:Coordinate{x: -3.14,y:1.618},
25+
min:Coordinate{x: -3.2,y:1.618},
2626
max:Coordinate{
2727
x:160.0,
2828
y:69701.5615,
2929
},
3030
}),
31-
"BOX(POINT(160.0, 69701.5615), POINT(-3.14, 1.618))",
31+
"BOX(POINT(160.0, 69701.5615), POINT(-3.2, 1.618))",
3232
),
3333
(None,"NULL"),
3434
],
@@ -40,7 +40,7 @@ async fn test_box_params() {
4040
asyncfntest_path_params(){
4141
let points =vec![
4242
Coordinate{ x:0., y:0.},
43-
Coordinate{ x: -3.14, y:1.618},
43+
Coordinate{ x: -3.2, y:1.618},
4444
Coordinate{
4545
x:160.0,
4646
y:69701.5615,
@@ -51,7 +51,7 @@ async fn test_path_params() {
5151
&[
5252
(
5353
Some(LineString(points)),
54-
"path '((0, 0), (-3.14, 1.618), (160.0, 69701.5615))'",
54+
"path '((0, 0), (-3.2, 1.618), (160.0, 69701.5615))'",
5555
),
5656
(None,"NULL"),
5757
],

‎tokio-postgres/tests/test/types/geo_types_05.rs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async fn test_point_params() {
88
"POINT",
99
&[
1010
(Some(Point::new(0.0,0.0)),"POINT(0, 0)"),
11-
(Some(Point::new(-3.14,1.618)),"POINT(-3.14, 1.618)"),
11+
(Some(Point::new(-3.2,1.618)),"POINT(-3.2, 1.618)"),
1212
(None,"NULL"),
1313
],
1414
)
@@ -22,13 +22,13 @@ async fn test_box_params() {
2222
&[
2323
(
2424
Some(Rect::new(
25-
Coordinate{x: -3.14,y:1.618},
25+
Coordinate{x: -3.2,y:1.618},
2626
Coordinate{
2727
x:160.0,
2828
y:69701.5615,
2929
},
3030
)),
31-
"BOX(POINT(160.0, 69701.5615), POINT(-3.14, 1.618))",
31+
"BOX(POINT(160.0, 69701.5615), POINT(-3.2, 1.618))",
3232
),
3333
(None,"NULL"),
3434
],
@@ -40,7 +40,7 @@ async fn test_box_params() {
4040
asyncfntest_path_params(){
4141
let points =vec![
4242
Coordinate{ x:0., y:0.},
43-
Coordinate{ x: -3.14, y:1.618},
43+
Coordinate{ x: -3.2, y:1.618},
4444
Coordinate{
4545
x:160.0,
4646
y:69701.5615,
@@ -51,7 +51,7 @@ async fn test_path_params() {
5151
&[
5252
(
5353
Some(LineString(points)),
54-
"path '((0, 0), (-3.14, 1.618), (160.0, 69701.5615))'",
54+
"path '((0, 0), (-3.2, 1.618), (160.0, 69701.5615))'",
5555
),
5656
(None,"NULL"),
5757
],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp