From 1ad0919fa9a9404ba82125c2c654f3d8c25a202b Mon Sep 17 00:00:00 2001 From: Jonathan Behrens Date: Thu, 13 Sep 2018 14:58:13 -0400 Subject: [PATCH 1/2] Remove println!() statement from HashMap unit test --- src/libstd/collections/hash/map.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 804d43f4fc6..eb63d547dd5 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -3537,7 +3537,6 @@ mod test_map { match m.entry(x) { Vacant(_) => {} Occupied(e) => { - println!("{}: remove {}", i, x); e.remove(); } } From e9583628b2dcc389a69999e5ff431b70c1561488 Mon Sep 17 00:00:00 2001 From: Jonathan Behrens Date: Thu, 13 Sep 2018 16:48:09 -0400 Subject: [PATCH 2/2] Eliminate unused variable warning --- src/libstd/collections/hash/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index eb63d547dd5..ef5dae724b2 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -3532,7 +3532,7 @@ 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(_) => {}