From 8b30c87fe6cf514544d8bc68989631daac8aeec1 Mon Sep 17 00:00:00 2001 From: tivek Date: Sat, 19 Jul 2014 11:32:17 +0200 Subject: [PATCH] Fix int type inference in range calls --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4c0e9da..f5ee7b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -164,7 +164,7 @@ impl Mutable for AnyMap { fn bench_insertion(b: &mut ::test::Bencher) { b.iter(|| { let mut data = AnyMap::new(); - for _ in range(0, 100) { + for _ in range(0u, 100) { data.insert(42i); } }) @@ -174,7 +174,7 @@ fn bench_insertion(b: &mut ::test::Bencher) { fn bench_find_missing(b: &mut ::test::Bencher) { b.iter(|| { let data = AnyMap::new(); - for _ in range(0, 100) { + for _ in range(0u, 100) { assert_eq!(data.find(), None::<&int>); } }) @@ -186,7 +186,7 @@ fn bench_find_present(b: &mut ::test::Bencher) { let mut data = AnyMap::new(); data.insert(42i); // These inner loops are a feeble attempt to drown the other factors. - for _ in range(0, 100) { + for _ in range(0u, 100) { assert_eq!(data.find(), Some(&42i)); } })