1
Fork 0

fix couple of clippy findings:

filter_map_identity
iter_kv_map
needless_question_mark
redundant_at_rest_pattern
filter_next
derivable_impls
This commit is contained in:
Matthias Krüger 2023-07-23 10:50:14 +02:00
parent cec34a43b1
commit adf759bf6a
6 changed files with 8 additions and 16 deletions

View file

@ -183,8 +183,7 @@ pub fn test_main_static_abort(tests: &[&TestDescAndFn]) {
let test = tests
.into_iter()
.filter(|test| test.desc.name.as_slice() == name)
.next()
.find(|test| test.desc.name.as_slice() == name)
.unwrap_or_else(|| panic!("couldn't find a test with the provided name '{name}'"));
let TestDescAndFn { desc, testfn } = test;
match testfn.into_runnable() {