diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-10-14 14:30:27 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-10-14 17:20:45 +0200 |
| commit | a14a950c44ec6a2a4ed38e0b133c35e2245d194a (patch) | |
| tree | f06790fa86d878d8a49ff64a3b60377182d039f4 | |
| parent | 354a965ede0d63e81964b16276e4a1a6b1bbcdc5 (diff) | |
| download | rust-a14a950c44ec6a2a4ed38e0b133c35e2245d194a.tar.gz rust-a14a950c44ec6a2a4ed38e0b133c35e2245d194a.zip | |
change a cloning map to into_iter
| -rw-r--r-- | src/librustc/ty/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/util.rs b/src/librustc/ty/util.rs index dfe42e0c661..5f63f11338a 100644 --- a/src/librustc/ty/util.rs +++ b/src/librustc/ty/util.rs @@ -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) } |
