mirror of
https://github.com/fafhrd91/actix-net
synced 2025-09-01 04:57:16 +02:00
Upgrade tokio utils to 0.3 (#138)
This commit is contained in:
@@ -9,8 +9,7 @@ use super::{Decoder, Encoder};
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct BytesCodec;
|
||||
|
||||
impl Encoder for BytesCodec {
|
||||
type Item = Bytes;
|
||||
impl Encoder<Bytes> for BytesCodec {
|
||||
type Error = io::Error;
|
||||
|
||||
fn encode(&mut self, item: Bytes, dst: &mut BytesMut) -> Result<(), Self::Error> {
|
||||
|
Reference in New Issue
Block a user