Skip to content

Commit c8e032e

Browse files
committed
clippy
1 parent 039495b commit c8e032e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/webserver/request_variables.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ impl RequestVariables {
6060
let val = var_list
6161
.iter()
6262
.rev()
63-
.flat_map(|m| m.get(name))
64-
.next()
63+
.find_map(|m| m.get(name))
6564
.or_else(|| self.root_variables.get(name));
6665
f(val)
6766
}

0 commit comments

Comments
 (0)