diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-15 19:02:26 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-15 19:02:26 +0200 |
| commit | bcd79c222ac7a316502e9537e86fae6512bc697d (patch) | |
| tree | a4d475e20f72e13ca4a3e34c2d27e4f335b7cc8e /compiler/rustc_query_impl/src | |
| parent | d666f6bf22b3b46f2f232507b328379e7bfaedb0 (diff) | |
| download | rust-bcd79c222ac7a316502e9537e86fae6512bc697d.tar.gz rust-bcd79c222ac7a316502e9537e86fae6512bc697d.zip | |
fix clippy::{clone_on_copy, useless_conversion}
Diffstat (limited to 'compiler/rustc_query_impl/src')
| -rw-r--r-- | compiler/rustc_query_impl/src/profiling_support.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_impl/src/profiling_support.rs b/compiler/rustc_query_impl/src/profiling_support.rs index 4743170e9bf..579a789244b 100644 --- a/compiler/rustc_query_impl/src/profiling_support.rs +++ b/compiler/rustc_query_impl/src/profiling_support.rs @@ -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 |
