about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-26 19:32:44 +0200
committerGitHub <noreply@github.com>2021-10-26 19:32:44 +0200
commit76392fbaf33126e20a2f48b2df4231dea74624ae (patch)
tree0aea8e0192b1973ec4b9f0024c1d9dfb598dab5b
parent8871fe8bda9625afc6e39cd9cd73f7bf87233fe9 (diff)
parentcdee8396964a2b6e5a7b9133644dbd406e1fe6b5 (diff)
downloadrust-76392fbaf33126e20a2f48b2df4231dea74624ae.tar.gz
rust-76392fbaf33126e20a2f48b2df4231dea74624ae.zip
Rollup merge of #90302 - GuillaumeGomez:rm-unneeded-into_iter, r=jyn514
Remove unneeded into_iter

As ``@camelid`` mentionned [here](https://github.com/rust-lang/rust/pull/89430#discussion_r735889324), the `into_iter` was unneeded.

r? ``@camelid``
-rw-r--r--src/librustdoc/json/conversions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/json/conversions.rs b/src/librustdoc/json/conversions.rs
index 6fa0425c495..443ac282134 100644
--- a/src/librustdoc/json/conversions.rs
+++ b/src/librustdoc/json/conversions.rs
@@ -412,7 +412,7 @@ impl FromWithTcx<clean::Type> for Type {
                         .map(|t| {
                             clean::GenericBound::TraitBound(t, rustc_hir::TraitBoundModifier::None)
                         })
-                        .chain(lt.into_iter().map(clean::GenericBound::Outlives))
+                        .chain(lt.map(clean::GenericBound::Outlives))
                         .map(|bound| bound.into_tcx(tcx))
                         .collect(),
                 }