diff --git a/src/io/frame.rs b/src/io/frame.rs
index 0f3748830..11eed10e1 100644
--- a/src/io/frame.rs
+++ b/src/io/frame.rs
@@ -233,7 +233,7 @@ pub trait Codec {
/// Finally, if the bytes in the buffer are malformed then an error is
/// returned indicating why. This informs `Framed` that the stream is now
/// corrupt and should be terminated.
- fn decode(&mut self, buf: &mut EasyBuf) -> Result