about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-04-02 10:08:35 +0200
committerGitHub <noreply@github.com>2023-04-02 10:08:35 +0200
commit59f394bf8645729a1ffdcbf04745e5566ea045c1 (patch)
tree5571ebcf2e98536af4f444f8d5882fc674877489 /compiler/rustc_monomorphize/src
parente2ffe151a3f7e58d8623e67ba7ce97c25c3ae414 (diff)
parent73bd953dea25e0aa225eaf8844f2d06807691e3e (diff)
downloadrust-59f394bf8645729a1ffdcbf04745e5566ea045c1.tar.gz
rust-59f394bf8645729a1ffdcbf04745e5566ea045c1.zip
Rollup merge of #109846 - matthiaskrgr:clippy2023_04_III, r=Nilstrieb
more clippy::complexity fixes (iter_kv_map, map_flatten, nonminimal_bool)
Diffstat (limited to 'compiler/rustc_monomorphize/src')
-rw-r--r--compiler/rustc_monomorphize/src/partitioning/default.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning/default.rs b/compiler/rustc_monomorphize/src/partitioning/default.rs
index 50bcc3336d6..482b78d42e3 100644
--- a/compiler/rustc_monomorphize/src/partitioning/default.rs
+++ b/compiler/rustc_monomorphize/src/partitioning/default.rs
@@ -89,10 +89,7 @@ impl<'tcx> Partitioner<'tcx> for DefaultPartitioning {
         }
 
         PreInliningPartitioning {
-            codegen_units: codegen_units
-                .into_iter()
-                .map(|(_, codegen_unit)| codegen_unit)
-                .collect(),
+            codegen_units: codegen_units.into_values().map(|codegen_unit| codegen_unit).collect(),
             roots,
             internalization_candidates,
         }