From ea67d72262eadf4bc07447d58d7e8cb9aaf81ce2 Mon Sep 17 00:00:00 2001 From: Aloke Desai Date: Wed, 11 Sep 2024 13:12:10 -0400 Subject: [PATCH] Update wgpu/src/api/surface_texture.rs Co-authored-by: Andreas Reich --- wgpu/src/api/surface_texture.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/src/api/surface_texture.rs b/wgpu/src/api/surface_texture.rs index 6a1b342a7..9427c1d32 100644 --- a/wgpu/src/api/surface_texture.rs +++ b/wgpu/src/api/surface_texture.rs @@ -79,7 +79,7 @@ impl fmt::Display for SurfaceError { Self::Outdated => "The underlying surface has changed, and therefore the swap chain must be updated", Self::Lost => "The swap chain has been lost and needs to be recreated", Self::OutOfMemory => "There is no more memory left to allocate a new frame", - SurfaceError::Other => "Acquiring a texture failed for an unknown reason" + Self::Other => "Acquiring a texture failed for an unknown reason" }) } }