Skip to content

Commit

Permalink
Rollup merge of rust-lang#90302 - GuillaumeGomez:rm-unneeded-into_ite…
Browse files Browse the repository at this point in the history
…r, r=jyn514

Remove unneeded into_iter

As ``@camelid`` mentionned [here](rust-lang#89430 (comment)), the `into_iter` was unneeded.

r? ``@camelid``
  • Loading branch information
matthiaskrgr authored Oct 26, 2021
2 parents 8871fe8 + cdee839 commit 76392fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/json/conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
Expand Down

0 comments on commit 76392fb

Please sign in to comment.