Remove unneeded into_iter

This commit is contained in:
Guillaume Gomez 2021-10-26 11:50:52 +02:00
parent 1b61b1b445
commit cdee839696

View File

@ -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(),
}