diff --git a/benches/benches/bevy_reflect/map.rs b/benches/benches/bevy_reflect/map.rs index 69963316b61d2d..054dcf9570da06 100644 --- a/benches/benches/bevy_reflect/map.rs +++ b/benches/benches/bevy_reflect/map.rs @@ -265,7 +265,7 @@ fn dynamic_map_insert(criterion: &mut Criterion) { |mut map| { for i in 0..size as u64 { let key = black_box(i); - black_box(map.insert(key, i)); + map.insert(key, black_box(i)); } }, BatchSize::SmallInput, diff --git a/benches/benches/bevy_reflect/struct.rs b/benches/benches/bevy_reflect/struct.rs index 5fc3a462c57621..dfd324e7053e6e 100644 --- a/benches/benches/bevy_reflect/struct.rs +++ b/benches/benches/bevy_reflect/struct.rs @@ -313,7 +313,7 @@ fn dynamic_struct_insert(criterion: &mut Criterion) { bencher.iter_batched( || s.clone_dynamic(), |mut s| { - black_box(s.insert(black_box(&field), ())); + s.insert(black_box(&field), ()); }, BatchSize::SmallInput, );