diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-03-18 09:16:08 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-03-18 09:16:08 +0300 |
| commit | dccd17d23e6e67e410e41f97ba9feb7f71717627 (patch) | |
| tree | 057778db15201cdfd27bcf86a2ab17da17b545ff /src/libstd/old_path/mod.rs | |
| parent | d2cccd07bce0477b0fd873590299eb042bc164f5 (diff) | |
| download | rust-dccd17d23e6e67e410e41f97ba9feb7f71717627.tar.gz rust-dccd17d23e6e67e410e41f97ba9feb7f71717627.zip | |
Remove the newly introduced trait impls for fixed-size arrays and use &b"..."[..] instead.
Diffstat (limited to 'src/libstd/old_path/mod.rs')
| -rw-r--r-- | src/libstd/old_path/mod.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libstd/old_path/mod.rs b/src/libstd/old_path/mod.rs index 3ad35bdd502..5fc34c0fe92 100644 --- a/src/libstd/old_path/mod.rs +++ b/src/libstd/old_path/mod.rs @@ -64,7 +64,6 @@ #![allow(deprecated)] // seriously this is all deprecated #![allow(unused_imports)] -use core::array::FixedSizeArray; use core::marker::Sized; use ffi::CString; use clone::Clone; @@ -896,13 +895,6 @@ impl BytesContainer for [u8] { } } -impl<T: FixedSizeArray<u8>> BytesContainer for T { - #[inline] - fn container_as_bytes(&self) -> &[u8] { - self.as_slice() - } -} - impl BytesContainer for Vec<u8> { #[inline] fn container_as_bytes(&self) -> &[u8] { |
