Skip to content

Commit f9e5dbc

Browse files
committed
Auto merge of rust-lang#113975 - matthiaskrgr:clippy_07_2023, r=fee1-dead
clippy::style fixes r? `@oli-obk` filter_map_identity iter_kv_map needless_question_mark redundant_at_rest_pattern filter_next derivable_impls useless_format
2 parents c2030b2 + 19e040b commit f9e5dbc

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)