perf(header): improve on MemSlice usage in headers

This commit is contained in:
Sean McArthur
2017-01-26 23:49:44 -08:00
parent 1b556389c0
commit 61364d245b
14 changed files with 190 additions and 195 deletions

View File

@@ -69,7 +69,7 @@ impl AsRef<[u8]> for Chunk {
match self.0 {
Inner::Owned(ref vec) => vec,
Inner::Referenced(ref vec) => vec,
Inner::Mem(ref slice) => slice,
Inner::Mem(ref slice) => slice.as_ref(),
Inner::Static(slice) => slice,
}
}