diff options
Diffstat (limited to 'tokio-util/src/codec/bytes_codec.rs')
-rw-r--r-- | tokio-util/src/codec/bytes_codec.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tokio-util/src/codec/bytes_codec.rs b/tokio-util/src/codec/bytes_codec.rs index 46b31aa3..a5e73749 100644 --- a/tokio-util/src/codec/bytes_codec.rs +++ b/tokio-util/src/codec/bytes_codec.rs @@ -65,8 +65,7 @@ impl Decoder for BytesCodec { } } -impl Encoder for BytesCodec { - type Item = Bytes; +impl Encoder<Bytes> for BytesCodec { type Error = io::Error; fn encode(&mut self, data: Bytes, buf: &mut BytesMut) -> Result<(), io::Error> { |