diff --git a/tokio-util/src/codec/framed.rs b/tokio-util/src/codec/framed.rs index ec7aa172f0b..d36248bc9b7 100644 --- a/tokio-util/src/codec/framed.rs +++ b/tokio-util/src/codec/framed.rs @@ -41,10 +41,7 @@ pin_project! { } } -impl Framed -where - T: AsyncRead + AsyncWrite, -{ +impl Framed { /// Provides a [`Stream`] and [`Sink`] interface for reading and writing to this /// I/O object, using [`Decoder`] and [`Encoder`] to read and write the raw data. /// @@ -127,9 +124,7 @@ where }, } } -} -impl Framed { /// Provides a [`Stream`] and [`Sink`] interface for reading and writing to this /// I/O object, using [`Decoder`] and [`Encoder`] to read and write the raw data. /// diff --git a/tokio-util/src/codec/framed_read.rs b/tokio-util/src/codec/framed_read.rs index 0f2e16dc342..66cf7ef411d 100644 --- a/tokio-util/src/codec/framed_read.rs +++ b/tokio-util/src/codec/framed_read.rs @@ -36,11 +36,7 @@ pin_project! { // ===== impl FramedRead ===== -impl FramedRead -where - T: AsyncRead, - D: Decoder, -{ +impl FramedRead { /// Creates a new `FramedRead` with the given `decoder`. pub fn new(inner: T, decoder: D) -> FramedRead { FramedRead { @@ -68,9 +64,7 @@ where }, } } -} -impl FramedRead { /// Returns a reference to the underlying I/O stream wrapped by /// `FramedRead`. /// diff --git a/tokio-util/src/codec/framed_write.rs b/tokio-util/src/codec/framed_write.rs index efc369ebfad..db80f5b443f 100644 --- a/tokio-util/src/codec/framed_write.rs +++ b/tokio-util/src/codec/framed_write.rs @@ -35,10 +35,7 @@ pin_project! { } } -impl FramedWrite -where - T: AsyncWrite, -{ +impl FramedWrite { /// Creates a new `FramedWrite` with the given `encoder`. pub fn new(inner: T, encoder: E) -> FramedWrite { FramedWrite { @@ -64,9 +61,7 @@ where }, } } -} -impl FramedWrite { /// Returns a reference to the underlying I/O stream wrapped by /// `FramedWrite`. ///