Replace all uses of &foo[] with &foo[..] en masse.
This commit is contained in:
@@ -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[..]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user