diff --git a/tokio-util/src/codec/framed.rs b/tokio-util/src/codec/framed.rs index 8a344f90d..043b43841 100644 --- a/tokio-util/src/codec/framed.rs +++ b/tokio-util/src/codec/framed.rs @@ -368,10 +368,7 @@ pub struct FramedParts { impl FramedParts { /// Create a new, default, `FramedParts` - pub fn new(io: T, codec: U) -> FramedParts - where - U: Encoder, - { + pub fn new(io: T, codec: U) -> FramedParts { FramedParts { io, codec,