Added lifetime annotations to methods in common/hwcodec.rs and common/vram.rs.

This commit is contained in:
Jonathan Gilbert
2025-11-02 01:05:14 -05:00
parent c769bbc8be
commit bdd883f900
2 changed files with 2 additions and 2 deletions

View File

@@ -364,7 +364,7 @@ impl HwRamDecoder {
}
}
}
pub fn decode(&mut self, data: &[u8]) -> ResultType<Vec<HwRamDecoderImage>> {
pub fn decode<'a>(&'a mut self, data: &[u8]) -> ResultType<Vec<HwRamDecoderImage<'a>>> {
match self.decoder.decode(data) {
Ok(v) => Ok(v.iter().map(|f| HwRamDecoderImage { frame: f }).collect()),
Err(e) => Err(anyhow!(e)),

View File

@@ -367,7 +367,7 @@ impl VRamDecoder {
}
}
}
pub fn decode(&mut self, data: &[u8]) -> ResultType<Vec<VRamDecoderImage>> {
pub fn decode<'a>(&'a mut self, data: &[u8]) -> ResultType<Vec<VRamDecoderImage<'a>>> {
match self.decoder.decode(data) {
Ok(v) => Ok(v.iter().map(|f| VRamDecoderImage { frame: f }).collect()),
Err(e) => Err(anyhow!(e)),