From 7a3e3a61f46602596fb5de83fd386e04f25f6faf Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Mon, 8 Feb 2016 13:37:03 -0800 Subject: [PATCH] chore(tests): Silence some warnings --- serde_tests/benches/bench_map.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/serde_tests/benches/bench_map.rs b/serde_tests/benches/bench_map.rs index 71d0ab92..37df96e6 100644 --- a/serde_tests/benches/bench_map.rs +++ b/serde_tests/benches/bench_map.rs @@ -399,7 +399,7 @@ fn bench_decoder_000(b: &mut Bencher) { fn bench_decoder_003(b: &mut Bencher) { b.iter(|| { let mut m: HashMap = HashMap::new(); - for i in (0 .. 3) { + for i in 0 .. 3 { m.insert(i.to_string(), i); } run_decoder(decoder::IsizeDecoder::new(m.clone()), m) @@ -410,7 +410,7 @@ fn bench_decoder_003(b: &mut Bencher) { fn bench_decoder_100(b: &mut Bencher) { b.iter(|| { let mut m: HashMap = HashMap::new(); - for i in (0 .. 100) { + for i in 0 .. 100 { m.insert(i.to_string(), i); } run_decoder(decoder::IsizeDecoder::new(m.clone()), m) @@ -439,7 +439,7 @@ fn bench_deserializer_000(b: &mut Bencher) { fn bench_deserializer_003(b: &mut Bencher) { b.iter(|| { let mut m: HashMap = HashMap::new(); - for i in (0 .. 3) { + for i in 0 .. 3 { m.insert(i.to_string(), i); } run_deserializer(deserializer::IsizeDeserializer::new(m.clone()), m) @@ -450,7 +450,7 @@ fn bench_deserializer_003(b: &mut Bencher) { fn bench_deserializer_100(b: &mut Bencher) { b.iter(|| { let mut m: HashMap = HashMap::new(); - for i in (0 .. 100) { + for i in 0 .. 100 { m.insert(i.to_string(), i); } run_deserializer(deserializer::IsizeDeserializer::new(m.clone()), m)