Cleanup FramedParts in new tokio-codec (#394)

This commit is contained in:
Carl Lerche
2018-06-05 15:31:01 -07:00
committed by GitHub
parent f723d10087
commit c07a7b26d3
4 changed files with 87 additions and 76 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ use bytes::BytesMut;
use {AsyncWrite, AsyncRead};
use super::encoder::Encoder;
use ::_tokio_codec::{framed, Framed};
use ::_tokio_codec::Framed;
/// Decoding of frames via buffers.
///
@@ -112,6 +112,6 @@ pub trait Decoder {
fn framed<T: AsyncRead + AsyncWrite + Sized>(self, io: T) -> Framed<T, Self>
where Self: Encoder + Sized,
{
framed(io, self)
Framed::new(io, self)
}
}