1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-11 01:39:33 +00:00

add Debug impl

This commit is contained in:
Nikolay Kim 2018-10-24 16:48:45 -07:00
parent cd0223e8b7
commit 540ad18432

View file

@ -1,4 +1,5 @@
#![allow(unused_imports, unused_variables, dead_code)]
use std::fmt;
use std::io::{self, Write};
use bytes::{BufMut, Bytes, BytesMut};
@ -41,6 +42,12 @@ pub struct Codec {
te: ResponseEncoder,
}
impl fmt::Debug for Codec {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "h1::Codec({:?})", self.flags)
}
}
impl Codec {
/// Create HTTP/1 codec.
///