diff --git a/lib/src/chunk.rs b/lib/src/chunk.rs index 6d500f4d..b7ebf9b2 100644 --- a/lib/src/chunk.rs +++ b/lib/src/chunk.rs @@ -244,7 +244,7 @@ impl Chunk for RawChunk { } } -impl> Chunk for (ChunkType, T) { +impl> Chunk for (ChunkType, T) { #[inline] fn ty(&self) -> ChunkType { self.0 @@ -252,7 +252,7 @@ impl> Chunk for (ChunkType, T) { #[inline] fn data(&self) -> &[u8] { - &self.1 + self.1.as_ref() } }