Skip to content

Commit

Permalink
util: remove Encoder bound on FramedParts constructor (#5280)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfbacon authored Dec 9, 2022
1 parent c693ccd commit ae69d11
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tokio-util/src/codec/framed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,7 @@ pub struct FramedParts<T, U> {

impl<T, U> FramedParts<T, U> {
/// Create a new, default, `FramedParts`
pub fn new<I>(io: T, codec: U) -> FramedParts<T, U>
where
U: Encoder<I>,
{
pub fn new(io: T, codec: U) -> FramedParts<T, U> {
FramedParts {
io,
codec,
Expand Down

0 comments on commit ae69d11

Please sign in to comment.