From f363cb435abee49a5b84e91c48ad6ea9eb999427 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Sat, 11 Apr 2015 17:51:31 -0500 Subject: [PATCH] Remove `impl Into> for ByteBuf` since it causes a compile error As BurntSushi observes, there is an `impl Into for T where U: From` in libcore. We have `From>` for `ByteBuf` since we have implemented `From for ByteBuf where T: Into>`, so this is redundant anyway. --- src/bytes.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/bytes.rs b/src/bytes.rs index 79ea9fb3..9eab4eb6 100644 --- a/src/bytes.rs +++ b/src/bytes.rs @@ -97,12 +97,6 @@ impl AsMut<[u8]> for ByteBuf { } } -impl Into> for ByteBuf { - fn into(self) -> Vec { - self.bytes - } -} - impl ops::Deref for ByteBuf { type Target = [u8];