mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-22 03:36:17 +00:00
Remove impl Into<Vec<u8>> for ByteBuf since it causes a compile error
As BurntSushi observes, there is an `impl<T, U> Into<U> for T where U: From<T>` in libcore. We have `From<Vec<u8>>` for `ByteBuf` since we have implemented `From<T> for ByteBuf where T: Into<Vec<u8>>`, so this is redundant anyway.
This commit is contained in:
1 parent
d8506e9a6d
commit
f363cb435a
1 file changed
-6
@@ -97,12 +97,6 @@ impl AsMut<[u8]> for ByteBuf {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<Vec<u8>> for ByteBuf {
|
||||
fn into(self) -> Vec<u8> {
|
||||
self.bytes
|
||||
}
|
||||
}
|
||||
|
||||
impl ops::Deref for ByteBuf {
|
||||
type Target = [u8];
|
||||
|
||||
|
||||
Reference in new issue
Block a user