util: remove Encoder bound on FramedParts constructor (#5280)

This commit is contained in:
Matt Fellenz 2022-12-09 03:12:42 -08:00 committed by GitHub
parent c693ccd210
commit ae69d11d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,