Skip to content

Commit

Permalink
Update for Rust nightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Feb 19, 2015
1 parent 91c31f9 commit c158b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ mod benchmark {
($map_constructor: expr, $test_id: ident, $num_keys: expr, $key_length: expr) => (
#[bench]
fn $test_id(b: &mut Bencher) {
let mut map = $map_constructor;
let mut test_data = Vec::<Vec<u32>>::with_capacity($num_keys);
let mut map = $map_constructor;
for i in range(0, $num_keys) {
let mut key = Vec::<u32>::with_capacity($key_length);
for j in range(0, $key_length) {
Expand All @@ -460,7 +460,7 @@ mod benchmark {
}

b.iter(|| {
for key in test_data.iter() {
for key in &test_data {
map.insert(key.as_slice(), 7u32);
}
});
Expand Down

0 comments on commit c158b3d

Please sign in to comment.