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