about summary refs log tree commit diff
path: root/src/libstd/path.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2015-02-18 14:48:57 -0500
committerNiko Matsakis <niko@alum.mit.edu>2015-02-18 17:36:03 -0500
commit9ea84aeed4ed3006eddb6a7b24e9714f2844cd22 (patch)
tree566226c57e31172bd55c585a18651130786af96c /src/libstd/path.rs
parent64cd30e0cacb6b509f9368004afb0b6bde7a5143 (diff)
downloadrust-9ea84aeed4ed3006eddb6a7b24e9714f2844cd22.tar.gz
rust-9ea84aeed4ed3006eddb6a7b24e9714f2844cd22.zip
Replace all uses of `&foo[]` with `&foo[..]` en masse.
Diffstat (limited to 'src/libstd/path.rs')
-rwxr-xr-xsrc/libstd/path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 1d992668900..3cdf68818ab 100755
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -978,7 +978,7 @@ impl ops::Deref for PathBuf {
     type Target = Path;
 
     fn deref(&self) -> &Path {
-        unsafe { mem::transmute(&self.inner[]) }
+        unsafe { mem::transmute(&self.inner[..]) }
     }
 }
 
@@ -1010,7 +1010,7 @@ impl cmp::Ord for PathBuf {
 
 impl AsOsStr for PathBuf {
     fn as_os_str(&self) -> &OsStr {
-        &self.inner[]
+        &self.inner[..]
     }
 }