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_trait_selection/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_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/outlives_bounds.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs b/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs index 6d2dc94845d..cff3d277a78 100644 --- a/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs +++ b/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs @@ -110,8 +110,6 @@ impl<'a, 'tcx: 'a> InferCtxtExt<'a, 'tcx> for InferCtxt<'tcx> { body_id: LocalDefId, tys: FxIndexSet<Ty<'tcx>>, ) -> Bounds<'a, 'tcx> { - tys.into_iter() - .map(move |ty| self.implied_outlives_bounds(param_env, body_id, ty)) - .flatten() + tys.into_iter().flat_map(move |ty| self.implied_outlives_bounds(param_env, body_id, ty)) } } |
