diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2014-03-20 14:12:56 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2014-03-25 21:49:55 +0100 |
| commit | 6200e761f0ef58510ad2acc383b29de7e7a79bcd (patch) | |
| tree | 4eb8bee6a91f0d8cbc79b33506344a56f1891e5d /src/libstd/path | |
| parent | 1f5571abc222520537daa00fc8256040647eec86 (diff) | |
| download | rust-6200e761f0ef58510ad2acc383b29de7e7a79bcd.tar.gz rust-6200e761f0ef58510ad2acc383b29de7e7a79bcd.zip | |
Changed `iter::Extendable` and `iter::FromIterator` to take a `Iterator` by value
Diffstat (limited to 'src/libstd/path')
| -rw-r--r-- | src/libstd/path/posix.rs | 4 | ||||
| -rw-r--r-- | src/libstd/path/windows.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index 3596a07eeb2..cb4c830f380 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -277,7 +277,7 @@ impl GenericPath for Path { (None, None) => break, (Some(a), None) => { comps.push(a); - comps.extend(&mut ita); + comps.extend(ita.by_ref()); break; } (None, _) => comps.push(dot_dot_static), @@ -290,7 +290,7 @@ impl GenericPath for Path { comps.push(dot_dot_static); } comps.push(a); - comps.extend(&mut ita); + comps.extend(ita.by_ref()); break; } } diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index 9d65a99a0b5..d488997b0c2 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -539,7 +539,7 @@ impl GenericPath for Path { (Some(a), None) => { comps.push(a); if !a_verb { - comps.extend(&mut ita); + comps.extend(ita.by_ref()); break; } } @@ -561,7 +561,7 @@ impl GenericPath for Path { } comps.push(a); if !a_verb { - comps.extend(&mut ita); + comps.extend(ita.by_ref()); break; } } |
