1
Fork 0

Provide copy-free access to raw Decoder bytes

This commit is contained in:
Mark Rousskov 2022-02-22 18:11:59 -05:00
parent da3b2ca956
commit 2098ea6eba
5 changed files with 12 additions and 21 deletions

View file

@ -316,7 +316,7 @@ impl<'a, 'tcx> DecodeContext<'a, 'tcx> {
}
#[inline]
pub fn read_raw_bytes(&mut self, len: usize) -> &'a [u8] {
pub fn read_raw_bytes(&mut self, len: usize) -> &[u8] {
self.opaque.read_raw_bytes(len)
}
}