From e16be2019533894eb16d2885cdba49b98d330ce2 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Wed, 29 Oct 2025 10:40:50 +0100 Subject: [PATCH] rusticl: fix mismatched-lifetime-syntaxes lint warning This warn-by-default lint introduced in Rust 1.89.0 causes the following warning: warning: hiding a lifetime that's elided elsewhere is confusing --> ../../src/gallium/frontends/rusticl/core/semaphore.rs:276:14 | 276 | fn state(&self) -> MutexGuard { | ^^^^^ -------------------------- the same lifetime is hidden here | | | the lifetime is elided here | = help: the same lifetime is referred to in inconsistent ways, making the signature confusing = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default help: use `'_` for type paths | 276 | fn state(&self) -> MutexGuard<'_, SemaphoreState> { | +++ Follow the compiler's suggestion to fix this. Signed-off-by: Job Noorman Reviewed-by: Karol Herbst Part-of: --- src/gallium/frontends/rusticl/core/semaphore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/rusticl/core/semaphore.rs b/src/gallium/frontends/rusticl/core/semaphore.rs index 55d78d9e886..f744d47d241 100644 --- a/src/gallium/frontends/rusticl/core/semaphore.rs +++ b/src/gallium/frontends/rusticl/core/semaphore.rs @@ -273,7 +273,7 @@ impl Semaphore { Ok(()) } - fn state(&self) -> MutexGuard { + fn state(&self) -> MutexGuard<'_, SemaphoreState> { self.state.lock().unwrap() } }