From cdee8396964a2b6e5a7b9133644dbd406e1fe6b5 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 26 Oct 2021 11:50:52 +0200 Subject: [PATCH] Remove unneeded into_iter --- src/librustdoc/json/conversions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/json/conversions.rs b/src/librustdoc/json/conversions.rs index 6fa0425c4956b..443ac2821342e 100644 --- a/src/librustdoc/json/conversions.rs +++ b/src/librustdoc/json/conversions.rs @@ -412,7 +412,7 @@ impl FromWithTcx 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(), }