mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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}",
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue