Skip to content

Commit 3a78566

Browse files
authored
[wgpu-hal] Fix mismatched_lifetime_syntaxes lint in gles. (gfx-rs#8324)
Add a placeholder lifetime to `AdapterContext::get_without_egl_lock` to address Clippy's concerns about easy-to-misread function signatures.
1 parent 3f7dae1 commit 3a78566

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wgpu-hal/src/gles/egl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ impl AdapterContext {
422422
///
423423
/// > **Note:** Calling this function **will** still lock the [`glow::Context`] which adds an
424424
/// > extra safe-guard against accidental concurrent access to the context.
425-
pub unsafe fn get_without_egl_lock(&self) -> MappedMutexGuard<glow::Context> {
425+
pub unsafe fn get_without_egl_lock(&self) -> MappedMutexGuard<'_, glow::Context> {
426426
let guard = self
427427
.glow
428428
.try_lock_for(Duration::from_secs(CONTEXT_LOCK_TIMEOUT_SECS))

0 commit comments

Comments
 (0)