From 79d360035ab5e03f361c502517ef64e807352997 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 9 Oct 2025 18:12:49 +0200 Subject: [PATCH] nihed_cros_libva: add implicit lifetime markers where appropriate Rust 1.69 does not care but newer versions start to give warnings. --- nihed-cros-libva/src/picture.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() } } -- 2.39.5