From ae69d11d1f9f17c536f35369ab597cebb4bd0159 Mon Sep 17 00:00:00 2001 From: Matt Fellenz Date: Fri, 9 Dec 2022 03:12:42 -0800 Subject: [PATCH] util: remove `Encoder` bound on `FramedParts` constructor (#5280) --- tokio-util/src/codec/framed.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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,