]> git.nihav.org Git - nihav-player.git/commitdiff
nihed_cros_libva: add implicit lifetime markers where appropriate
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 9 Oct 2025 16:12:49 +0000 (18:12 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 9 Oct 2025 16:22:45 +0000 (18:22 +0200)
Rust 1.69 does not care but newer versions start to give warnings.

nihed-cros-libva/src/picture.rs

index 7dd579019fc59f52b8ef6351b68d644501a331b7..78b87e81c78290ef200c3220d17333388881ff8b 100644 (file)
@@ -273,12 +273,12 @@ impl<S: PictureReclaimableSurface> Picture<S> {
     }
 
     /// Returns a reference to the underlying `Surface` for this `Picture`
-    pub fn surface(&self) -> Ref<Surface> {
+    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<Surface> {
+    pub fn surface_mut(&mut self) -> RefMut<'_, Surface> {
         self.inner.surface.borrow_mut()
     }
 }