diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-11-27 14:43:55 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-06 23:53:00 -0500 |
| commit | 60338d91c4334e5fdfbd37b298cd5b99e8fc0cdd (patch) | |
| tree | 1bf5a10a9bb871ab6dc851c4f9b31ec1d852e4cc /src/libstd/sys/windows/tty.rs | |
| parent | 09f7713dd45c3a0b37073115575697c256238b18 (diff) | |
| download | rust-60338d91c4334e5fdfbd37b298cd5b99e8fc0cdd.tar.gz rust-60338d91c4334e5fdfbd37b298cd5b99e8fc0cdd.zip | |
libstd: remove unnecessary `as_slice()` calls
Diffstat (limited to 'src/libstd/sys/windows/tty.rs')
| -rw-r--r-- | src/libstd/sys/windows/tty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/tty.rs b/src/libstd/sys/windows/tty.rs index 0e7b06cbb94..51679bb2003 100644 --- a/src/libstd/sys/windows/tty.rs +++ b/src/libstd/sys/windows/tty.rs @@ -113,7 +113,7 @@ impl TTY { pub fn write(&mut self, buf: &[u8]) -> IoResult<()> { let utf16 = match from_utf8(buf) { Some(utf8) => { - utf8.as_slice().utf16_units().collect::<Vec<u16>>() + utf8.utf16_units().collect::<Vec<u16>>() } None => return Err(invalid_encoding()), }; |
