Skip to content

Commit 955a403

Browse files
committed
clippy::filter_map_next
1 parent 9cfbea4 commit 955a403

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/request.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ impl<State> Request<State> {
177177
self.route_params
178178
.iter()
179179
.rev()
180-
.filter_map(|params| params.find(key))
181-
.next()
180+
.find_map(|params| params.find(key))
182181
.unwrap()
183182
.parse()
184183
}

0 commit comments

Comments
 (0)