Fix some clippy issues
Found while working on https://github.com/rust-lang/rust/pull/77351; these are just the ones that could be fixed automatically.
This commit is contained in:
@@ -237,11 +237,9 @@ where
|
||||
let event = TestEvent::TeFiltered(filtered_descs);
|
||||
notify_about_test_event(event)?;
|
||||
|
||||
let (filtered_tests, filtered_benchs): (Vec<_>, _) =
|
||||
filtered_tests.into_iter().partition(|e| match e.testfn {
|
||||
StaticTestFn(_) | DynTestFn(_) => true,
|
||||
_ => false,
|
||||
});
|
||||
let (filtered_tests, filtered_benchs): (Vec<_>, _) = filtered_tests
|
||||
.into_iter()
|
||||
.partition(|e| matches!(e.testfn, StaticTestFn(_) | DynTestFn(_)));
|
||||
|
||||
let concurrency = opts.test_threads.unwrap_or_else(get_concurrency);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user