Fix build
This commit is contained in:
parent
3b31551f73
commit
1cbf9a1b8d
@ -57,7 +57,7 @@ impl<'a> FromSql<'a> for LineString<f64> {
|
||||
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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user