1
0
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:
Rob Ede
2020-07-19 21:44:26 +01:00
committed by GitHub
parent a9b5a7b070
commit 334c98575a
20 changed files with 83 additions and 1053 deletions

View File

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