Fix build

This commit is contained in:
Steven Fackler 2019-03-10 16:39:10 -07:00
parent 3b31551f73
commit 1cbf9a1b8d

View File

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