Replace all uses of &foo[] with &foo[..] en masse.

This commit is contained in:
Niko Matsakis
2015-02-18 14:48:57 -05:00
parent 64cd30e0ca
commit 9ea84aeed4
145 changed files with 865 additions and 864 deletions

View File

@@ -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[..]
}
}