diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 804d43f4fc683..ef5dae724b247 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -3532,12 +3532,11 @@ mod test_map { m.insert(x, ()); } - for i in 0..1000 { + for _ in 0..1000 { let x = rng.gen_range(-10, 10); match m.entry(x) { Vacant(_) => {} Occupied(e) => { - println!("{}: remove {}", i, x); e.remove(); } }