Fix error message typo in PgPoint::from_str (#3811)

This commit is contained in:
TeCHiScy 2025-04-01 15:41:28 +08:00 committed by GitHub
parent f0be19e640
commit 082aed5c2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 })
}