Skip to content

Commit

Permalink
Remove unneeded into_iter
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Oct 26, 2021
1 parent 1b61b1b commit cdee839
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 cdee839

Please sign in to comment.