Skip to content

Commit 37fa6f8

Browse files
committed
rustdoc: Don't use into_iter() when cleaning impl Trait
1 parent 31ae4f9 commit 37fa6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2756,7 +2756,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
27562756
let predicates_of = cx.tcx.predicates_of(def_id);
27572757
let substs = cx.tcx.lift(&substs).unwrap();
27582758
let bounds = predicates_of.instantiate(cx.tcx, substs);
2759-
ImplTrait(bounds.predicates.into_iter().filter_map(|predicate| {
2759+
ImplTrait(bounds.predicates.iter().filter_map(|predicate| {
27602760
predicate.to_opt_poly_trait_ref().clean(cx)
27612761
}).collect())
27622762
}

0 commit comments

Comments
 (0)