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

This commit is contained in:
Matt Fellenz
2022-12-09 11:12:42 +00:00
committed by GitHub
parent c693ccd210
commit ae69d11d1f
+1 -4
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,