]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/windows/fs.rs
Fallout from stabilization.
[rust.git] / src / libstd / sys / windows / fs.rs
index a7330f7c67c91f772fdc4b3f3dfa860cf498e3d5..cb8ef7eb66bc414d30658135feef4d382a213930 100644 (file)
@@ -376,7 +376,7 @@ pub fn readlink(p: &Path) -> IoResult<Path> {
     });
     let ret = match ret {
         Some(ref s) if s.starts_with(r"\\?\") => { // "
-            Ok(Path::new(s.slice_from(4)))
+            Ok(Path::new(&s[4..]))
         }
         Some(s) => Ok(Path::new(s)),
         None => Err(super::last_error()),