mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Use the mut_iter method of TreeMap now that it exists.
This commit is contained in:
parent
f89bc6b958
commit
34c90c36ce
1 changed files with 1 additions and 3 deletions
|
@ -186,9 +186,7 @@ impl Profiler {
|
|||
println!("{:39s} {:15s} {:15s} {:15s} {:15s} {:15s}",
|
||||
"_category_", "_mean (ms)_", "_median (ms)_",
|
||||
"_min (ms)_", "_max (ms)_", "_bucket size_");
|
||||
for (category, data) in self.buckets.iter() {
|
||||
// FIXME(XXX): TreeMap currently lacks mut_iter()
|
||||
let mut data = data.clone();
|
||||
for (category, data) in self.buckets.mut_iter() {
|
||||
data.sort_by(|a, b| {
|
||||
if a < b {
|
||||
Less
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue