mirror of https://github.com/fafhrd91/actix-web
				
				
				
			add Debug impl
This commit is contained in:
		
							parent
							
								
									cd0223e8b7
								
							
						
					
					
						commit
						540ad18432
					
				|  | @ -1,4 +1,5 @@ | ||||||
| #![allow(unused_imports, unused_variables, dead_code)] | #![allow(unused_imports, unused_variables, dead_code)] | ||||||
|  | use std::fmt; | ||||||
| use std::io::{self, Write}; | use std::io::{self, Write}; | ||||||
| 
 | 
 | ||||||
| use bytes::{BufMut, Bytes, BytesMut}; | use bytes::{BufMut, Bytes, BytesMut}; | ||||||
|  | @ -41,6 +42,12 @@ pub struct Codec { | ||||||
|     te: ResponseEncoder, |     te: ResponseEncoder, | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | impl fmt::Debug for Codec { | ||||||
|  |     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||||||
|  |         write!(f, "h1::Codec({:?})", self.flags) | ||||||
|  |     } | ||||||
|  | } | ||||||
|  | 
 | ||||||
| impl Codec { | impl Codec { | ||||||
|     /// Create HTTP/1 codec.
 |     /// Create HTTP/1 codec.
 | ||||||
|     ///
 |     ///
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue