change a cloning map to into_iter
This commit is contained in:
parent
354a965ede
commit
a14a950c44
1 changed files with 1 additions and 1 deletions
|
|
@ -681,7 +681,7 @@ impl<'a, 'tcx> ty::TyS<'tcx> {
|
|||
match (r1, r2) {
|
||||
(Representability::SelfRecursive(v1),
|
||||
Representability::SelfRecursive(v2)) => {
|
||||
Representability::SelfRecursive(v1.iter().map(|s| *s).chain(v2).collect())
|
||||
Representability::SelfRecursive(v1.into_iter().chain(v2).collect())
|
||||
}
|
||||
(r1, r2) => cmp::max(r1, r2)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue