[wgpu-hal] Fix mismatched_lifetime_syntaxes lint in gles. (#8324)

Add a placeholder lifetime to `AdapterContext::get_without_egl_lock`
to address Clippy's concerns about easy-to-misread function
signatures.
This commit is contained in:
Jim Blandy 2025-10-13 10:21:54 -07:00 committed by GitHub
parent 3f7dae1a30
commit 3a78566105
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -422,7 +422,7 @@ impl AdapterContext {
///
/// > **Note:** Calling this function **will** still lock the [`glow::Context`] which adds an
/// > extra safe-guard against accidental concurrent access to the context.
pub unsafe fn get_without_egl_lock(&self) -> MappedMutexGuard<glow::Context> {
pub unsafe fn get_without_egl_lock(&self) -> MappedMutexGuard<'_, glow::Context> {
let guard = self
.glow
.try_lock_for(Duration::from_secs(CONTEXT_LOCK_TIMEOUT_SECS))