Skip to content

Commit 19e040b

Browse files
committed
fix couple of clippy findings:
filter_map_identity iter_kv_map needless_question_mark redundant_at_rest_pattern filter_next derivable_impls
1 parent a512e21 commit 19e040b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ pub fn test_main_static_abort(tests: &[&TestDescAndFn]) {
183183

184184
let test = tests
185185
.into_iter()
186-
.filter(|test| test.desc.name.as_slice() == name)
187-
.next()
186+
.find(|test| test.desc.name.as_slice() == name)
188187
.unwrap_or_else(|| panic!("couldn't find a test with the provided name '{name}'"));
189188
let TestDescAndFn { desc, testfn } = test;
190189
match testfn.into_runnable() {

0 commit comments

Comments
 (0)