From 5929a59aca525b3f10b23cbcb384ff73a382ad1e Mon Sep 17 00:00:00 2001 From: sinkuu Date: Wed, 4 Jan 2017 17:47:20 +0900 Subject: [PATCH] Use `io::Result` --- src/io/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, io::Error>; + fn decode(&mut self, buf: &mut EasyBuf) -> io::Result>; /// A default method available to be called when there are no more bytes /// available to be read from the underlying I/O.