We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a512e21 commit 19e040bCopy full SHA for 19e040b
test/src/lib.rs
@@ -183,8 +183,7 @@ pub fn test_main_static_abort(tests: &[&TestDescAndFn]) {
183
184
let test = tests
185
.into_iter()
186
- .filter(|test| test.desc.name.as_slice() == name)
187
- .next()
+ .find(|test| test.desc.name.as_slice() == name)
188
.unwrap_or_else(|| panic!("couldn't find a test with the provided name '{name}'"));
189
let TestDescAndFn { desc, testfn } = test;
190
match testfn.into_runnable() {
0 commit comments