Skip to content

Commit 691c358

Browse files
committed
Fix lint
1 parent 54daee6 commit 691c358

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/gpx.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,13 @@ mod tests {
824824
let items = reader.collect::<Result<Vec<_>>>()?;
825825
let wp = items
826826
.iter()
827-
.find_map(|e| if let GpxItem::Waypoint(w) = e { Some(w) } else { None })
827+
.find_map(|e| {
828+
if let GpxItem::Waypoint(w) = e {
829+
Some(w)
830+
} else {
831+
None
832+
}
833+
})
828834
.expect("waypoint not found");
829835

830836
assert_eq!(wp.name, "WP");

0 commit comments

Comments
 (0)