Skip to content

Commit a14a950

Browse files
committed
change a cloning map to into_iter
1 parent 354a965 commit a14a950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustc/ty/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ impl<'a, 'tcx> ty::TyS<'tcx> {
681681
match (r1, r2) {
682682
(Representability::SelfRecursive(v1),
683683
Representability::SelfRecursive(v2)) => {
684-
Representability::SelfRecursive(v1.iter().map(|s| *s).chain(v2).collect())
684+
Representability::SelfRecursive(v1.into_iter().chain(v2).collect())
685685
}
686686
(r1, r2) => cmp::max(r1, r2)
687687
}

0 commit comments

Comments
 (0)