]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/windows/fs.rs
rollup merge of #19620: retep998/memorymap
[rust.git] / src / libstd / sys / windows / fs.rs
index 9402c63dcf558b6a3c001a28297d40c7edc76596..05be8de0b56e2e81db34f2c2274f1c4eb99b9921 100644 (file)
@@ -15,7 +15,7 @@
 
 use c_str::CString;
 use mem;
-use os::windows::fill_utf16_buf_and_decode;
+use os::windoze::fill_utf16_buf_and_decode;
 use path;
 use ptr;
 use str;
@@ -376,8 +376,8 @@ pub fn readlink(p: &Path) -> IoResult<Path> {
                                   libc::VOLUME_NAME_DOS)
     });
     let ret = match ret {
-        Some(ref s) if s.as_slice().starts_with(r"\\?\") => { // "
-            Ok(Path::new(s.as_slice().slice_from(4)))
+        Some(ref s) if s.starts_with(r"\\?\") => { // "
+            Ok(Path::new(s.slice_from(4)))
         }
         Some(s) => Ok(Path::new(s)),
         None => Err(super::last_error()),