diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 9cb25c041bdae..e9c47771c0199 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -32,6 +32,9 @@ rand_chacha = "0.3" [target.'cfg(target_os = "linux")'.dev-dependencies] bevy_winit = { path = "../crates/bevy_winit", features = ["x11"] } +[workspace.lints.clippy] +needless_lifetimes = "allow" + [[bench]] name = "ecs" path = "benches/bevy_ecs/main.rs" diff --git a/benches/benches/bevy_reflect/map.rs b/benches/benches/bevy_reflect/map.rs index 054dcf9570da0..753b90b29de63 100644 --- a/benches/benches/bevy_reflect/map.rs +++ b/benches/benches/bevy_reflect/map.rs @@ -217,7 +217,7 @@ fn dynamic_map_get(criterion: &mut Criterion) { bencher.iter(|| { for i in 0..size as u64 { let key = black_box(i); - black_box(assert!(map.get(&key).is_some())); + assert!(map.get(&key).is_some()); } }); },