diff options
| author | bors <bors@rust-lang.org> | 2015-06-11 18:10:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-06-11 18:10:08 +0000 |
| commit | b5b3a99f84f2b4dbf9495dccd7112c74f4357acc (patch) | |
| tree | cfdba2e1880f58d4e2c29e06fac2de4f76a34108 /src/libstd/sys | |
| parent | deff2f50a97342c8b2f92a124ded2d2ead7b2996 (diff) | |
| parent | d7f5fa4636b12c3dadd626e708ec7cef654faf54 (diff) | |
| download | rust-b5b3a99f84f2b4dbf9495dccd7112c74f4357acc.tar.gz rust-b5b3a99f84f2b4dbf9495dccd7112c74f4357acc.zip | |
Auto merge of #26190 - Veedrac:no-iter, r=alexcrichton
Pull request for #26188.
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/windows/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/fs.rs b/src/libstd/sys/windows/fs.rs index 4401a52d71f..437b2cc6491 100644 --- a/src/libstd/sys/windows/fs.rs +++ b/src/libstd/sys/windows/fs.rs @@ -368,7 +368,7 @@ impl fmt::Debug for File { } pub fn to_utf16(s: &Path) -> Vec<u16> { - s.as_os_str().encode_wide().chain(Some(0).into_iter()).collect() + s.as_os_str().encode_wide().chain(Some(0)).collect() } impl FileAttr { |
