fix couple of clippy findings:
filter_map_identity iter_kv_map needless_question_mark redundant_at_rest_pattern filter_next derivable_impls
This commit is contained in:
parent
cec34a43b1
commit
adf759bf6a
6 changed files with 8 additions and 16 deletions
|
@ -227,10 +227,8 @@ impl CodeStats {
|
|||
}
|
||||
|
||||
pub fn print_vtable_sizes(&self, crate_name: &str) {
|
||||
let mut infos = std::mem::take(&mut *self.vtable_sizes.lock())
|
||||
.into_iter()
|
||||
.map(|(_did, stats)| stats)
|
||||
.collect::<Vec<_>>();
|
||||
let mut infos =
|
||||
std::mem::take(&mut *self.vtable_sizes.lock()).into_values().collect::<Vec<_>>();
|
||||
|
||||
// Primary sort: cost % in reverse order (from largest to smallest)
|
||||
// Secondary sort: trait_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue