diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-04-02 10:08:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-02 10:08:35 +0200 |
| commit | 59f394bf8645729a1ffdcbf04745e5566ea045c1 (patch) | |
| tree | 5571ebcf2e98536af4f444f8d5882fc674877489 /compiler/rustc_monomorphize/src | |
| parent | e2ffe151a3f7e58d8623e67ba7ce97c25c3ae414 (diff) | |
| parent | 73bd953dea25e0aa225eaf8844f2d06807691e3e (diff) | |
| download | rust-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.rs | 5 |
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, } |
