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 path = types::path_from_sql(raw)?;
|
||||||
let points = path
|
let points = path
|
||||||
.points()
|
.points()
|
||||||
.map(|p| Coordinate { x: p.x(), y: p.y() })
|
.map(|p| Ok(Coordinate { x: p.x(), y: p.y() }))
|
||||||
.collect()?;
|
.collect()?;
|
||||||
Ok(LineString(points))
|
Ok(LineString(points))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user