diff options
Diffstat (limited to 'src/libstd/path')
| -rw-r--r-- | src/libstd/path/posix.rs | 12 | ||||
| -rw-r--r-- | src/libstd/path/windows.rs | 12 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index 0d7a467b313..8a50ecc5ca6 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -106,18 +106,6 @@ impl ToCStr for Path { } } -impl<'a> ToCStr for &'a Path { - #[inline] - fn to_c_str(&self) -> CString { - (*self).to_c_str() - } - - #[inline] - unsafe fn to_c_str_unchecked(&self) -> CString { - (*self).to_c_str_unchecked() - } -} - impl<S: hash::Writer> hash::Hash<S> for Path { #[inline] fn hash(&self, state: &mut S) { diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index 1ddc027a07e..e4bead6d8ab 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -130,18 +130,6 @@ impl ToCStr for Path { } } -impl<'a> ToCStr for &'a Path { - #[inline] - fn to_c_str(&self) -> CString { - (*self).to_c_str() - } - - #[inline] - unsafe fn to_c_str_unchecked(&self) -> CString { - (*self).to_c_str_unchecked() - } -} - impl<S: hash::Writer> hash::Hash<S> for Path { #[cfg(not(test))] #[inline] |
