diff --git a/src/http/chunk.rs b/src/http/chunk.rs index ec0b3d5e6f..bd404b0725 100644 --- a/src/http/chunk.rs +++ b/src/http/chunk.rs @@ -109,6 +109,13 @@ impl fmt::Debug for Chunk { } } +impl Default for Chunk { + #[inline] + fn default() -> Chunk { + Chunk(Inner::Shared(Bytes::new())) + } +} + impl IntoIterator for Chunk { type Item = u8; type IntoIter = ::IntoIter;