diff --git a/tokio-postgres/src/types/geo_types_04.rs b/tokio-postgres/src/types/geo_types_04.rs index 9a46cc2a..b3e7245c 100644 --- a/tokio-postgres/src/types/geo_types_04.rs +++ b/tokio-postgres/src/types/geo_types_04.rs @@ -57,7 +57,7 @@ impl<'a> FromSql<'a> for LineString { let path = types::path_from_sql(raw)?; let points = path .points() - .map(|p| Coordinate { x: p.x(), y: p.y() }) + .map(|p| Ok(Coordinate { x: p.x(), y: p.y() })) .collect()?; Ok(LineString(points)) }