Use the mut_iter method of TreeMap now that it exists.

This commit is contained in:
Cameron Zwarich 2014-05-16 21:20:45 -07:00
parent f89bc6b958
commit 34c90c36ce

View file

@ -186,9 +186,7 @@ impl Profiler {
println!("{:39s} {:15s} {:15s} {:15s} {:15s} {:15s}", println!("{:39s} {:15s} {:15s} {:15s} {:15s} {:15s}",
"_category_", "_mean (ms)_", "_median (ms)_", "_category_", "_mean (ms)_", "_median (ms)_",
"_min (ms)_", "_max (ms)_", "_bucket size_"); "_min (ms)_", "_max (ms)_", "_bucket size_");
for (category, data) in self.buckets.iter() { for (category, data) in self.buckets.mut_iter() {
// FIXME(XXX): TreeMap currently lacks mut_iter()
let mut data = data.clone();
data.sort_by(|a, b| { data.sort_by(|a, b| {
if a < b { if a < b {
Less Less