fix clippy::{clone_on_copy, useless_conversion}
This commit is contained in:
parent
d666f6bf22
commit
bcd79c222a
3 changed files with 4 additions and 5 deletions
|
@ -231,7 +231,7 @@ pub(crate) fn alloc_self_profile_query_strings_for_query_cache<'tcx, C>(
|
|||
// locked while doing so. Instead we copy out the
|
||||
// `(query_key, dep_node_index)` pairs and release the lock again.
|
||||
let mut query_keys_and_indices = Vec::new();
|
||||
query_cache.iter(&mut |k, _, i| query_keys_and_indices.push((k.clone(), i)));
|
||||
query_cache.iter(&mut |k, _, i| query_keys_and_indices.push((*k, i)));
|
||||
|
||||
// Now actually allocate the strings. If allocating the strings
|
||||
// generates new entries in the query cache, we'll miss them but
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue