diff options
Diffstat (limited to 'vendor/criterion/src/html/mod.rs')
-rw-r--r--[-rwxr-xr-x] | vendor/criterion/src/html/mod.rs | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/vendor/criterion/src/html/mod.rs b/vendor/criterion/src/html/mod.rs index d36065623..eb31a8168 100755..100644 --- a/vendor/criterion/src/html/mod.rs +++ b/vendor/criterion/src/html/mod.rs @@ -438,7 +438,7 @@ impl Report for Html { // If all of the value strings can be parsed into a number, sort/dedupe // numerically. Otherwise sort lexicographically. - if value_strs.iter().all(|os| try_parse(*os).is_some()) { + if value_strs.iter().all(|os| try_parse(os).is_some()) { value_strs.sort_unstable_by(|v1, v2| { let num1 = try_parse(v1); let num2 = try_parse(v2); @@ -464,7 +464,7 @@ impl Report for Html { self.generate_summary( &subgroup_id, - &*samples_with_function, + &samples_with_function, context, formatter, false, @@ -483,13 +483,7 @@ impl Report for Html { let subgroup_id = BenchmarkId::new(group_id.clone(), None, Some(value_str.clone()), None); - self.generate_summary( - &subgroup_id, - &*samples_with_value, - context, - formatter, - false, - ); + self.generate_summary(&subgroup_id, &samples_with_value, context, formatter, false); } } @@ -516,7 +510,7 @@ impl Report for Html { self.generate_summary( &BenchmarkId::new(group_id, None, None, None), - &*(all_data), + &all_data, context, formatter, true, @@ -543,8 +537,8 @@ impl Report for Html { } let mut groups = id_groups - .into_iter() - .map(|(_, group)| BenchmarkGroup::new(output_directory, &group)) + .into_values() + .map(|group| BenchmarkGroup::new(output_directory, &group)) .collect::<Vec<BenchmarkGroup<'_>>>(); groups.sort_unstable_by_key(|g| g.group_report.name); |