From 082aed5c2b6e68172bf29c377c3f5c87ca17cde4 Mon Sep 17 00:00:00 2001 From: TeCHiScy <741195+TeCHiScy@users.noreply.github.com> Date: Tue, 1 Apr 2025 15:41:28 +0800 Subject: [PATCH] Fix error message typo in PgPoint::from_str (#3811) --- sqlx-postgres/src/types/geometry/point.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx-postgres/src/types/geometry/point.rs b/sqlx-postgres/src/types/geometry/point.rs index 83b7c24d..5078ce1e 100644 --- a/sqlx-postgres/src/types/geometry/point.rs +++ b/sqlx-postgres/src/types/geometry/point.rs @@ -77,7 +77,7 @@ impl FromStr for PgPoint { .ok_or_else(|| format!("error decoding POINT: could not get x and y from {}", s))?; let x = parse_float_from_str(x_str, "error decoding POINT: could not get x")?; - let y = parse_float_from_str(y_str, "error decoding POINT: could not get x")?; + let y = parse_float_from_str(y_str, "error decoding POINT: could not get y")?; Ok(PgPoint { x, y }) }