mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
[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:
parent
3f7dae1a30
commit
3a78566105
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user