Fix clippy issue
This commit is contained in:
parent
d1e43a7aa7
commit
f32f67dbf4
|
@ -109,7 +109,7 @@ pub(crate) async fn resolve_address(address: String) -> Result<Position> {
|
||||||
let points: Vec<Point<f64>> = osm.forward(&address)?;
|
let points: Vec<Point<f64>> = osm.forward(&address)?;
|
||||||
|
|
||||||
points
|
points
|
||||||
.get(0)
|
.first()
|
||||||
.ok_or(Error::NoPositionFound)
|
.ok_or(Error::NoPositionFound)
|
||||||
.map(Position::from)
|
.map(Position::from)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue