diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-10-24 19:23:22 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-10-31 10:09:15 -0500 |
| commit | dd9dda7a1c87170fe241345f6da88874921ec433 (patch) | |
| tree | 665d0d06c5827ab9ea2debff8799c198b9e61ed8 /src/libstd/path | |
| parent | 82045ca3606dfe070fce99ca71fb6a9d39217b73 (diff) | |
| download | rust-dd9dda7a1c87170fe241345f6da88874921ec433.tar.gz rust-dd9dda7a1c87170fe241345f6da88874921ec433.zip | |
DSTify ToCStr
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] |
