Skip to content

Commit 082aed5

Browse files
authored
Fix error message typo in PgPoint::from_str (#3811)
1 parent f0be19e commit 082aed5

File tree

1 file changed

+1
-1
lines changed
  • sqlx-postgres/src/types/geometry

1 file changed

+1
-1
lines changed

sqlx-postgres/src/types/geometry/point.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl FromStr for PgPoint {
7777
.ok_or_else(|| format!("error decoding POINT: could not get x and y from {}", s))?;
7878

7979
let x = parse_float_from_str(x_str, "error decoding POINT: could not get x")?;
80-
let y = parse_float_from_str(y_str, "error decoding POINT: could not get x")?;
80+
let y = parse_float_from_str(y_str, "error decoding POINT: could not get y")?;
8181

8282
Ok(PgPoint { x, y })
8383
}

0 commit comments

Comments
 (0)