From: Kostya Shishkov Date: Thu, 9 Oct 2025 16:12:49 +0000 (+0200) Subject: nihed_cros_libva: add implicit lifetime markers where appropriate X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=79d360035ab5e03f361c502517ef64e807352997;p=nihav-player.git nihed_cros_libva: add implicit lifetime markers where appropriate Rust 1.69 does not care but newer versions start to give warnings. --- diff --git a/nihed-cros-libva/src/picture.rs b/nihed-cros-libva/src/picture.rs index 7dd5790..78b87e8 100644 --- a/nihed-cros-libva/src/picture.rs +++ b/nihed-cros-libva/src/picture.rs @@ -273,12 +273,12 @@ impl Picture { } /// Returns a reference to the underlying `Surface` for this `Picture` - pub fn surface(&self) -> Ref { + pub fn surface(&self) -> Ref<'_, Surface> { self.inner.surface.borrow() } /// Returns a mutable reference to the underlying `Surface` for this `Picture` - pub fn surface_mut(&mut self) -> RefMut { + pub fn surface_mut(&mut self) -> RefMut<'_, Surface> { self.inner.surface.borrow_mut() } }