switch LinearMap to current constructor convention

This commit is contained in:
Daniel Micay 2013-01-23 17:06:32 -05:00
parent 591eefd740
commit 7f0fa143bc
6 changed files with 37 additions and 33 deletions

View file

@ -178,10 +178,10 @@ fn main() {
let rng = rand::seeded_rng(&seed);
let mut results = empty_results();
int_benchmarks::<@Mut<LinearMap<uint, uint>>>(
|| @Mut(LinearMap()),
|| @Mut(LinearMap::new()),
rng, num_keys, &mut results);
str_benchmarks::<@Mut<LinearMap<~str, uint>>>(
|| @Mut(LinearMap()),
|| @Mut(LinearMap::new()),
rng, num_keys, &mut results);
write_results("libstd::map::hashmap", &results);
}