From a1bfbbbfab26c6600cde0ea30e40fbccea365026 Mon Sep 17 00:00:00 2001 From: xacrimon Date: Fri, 10 Sep 2021 21:44:35 +0200 Subject: [PATCH] fix lint --- wgpu-hal/src/metal/surface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-hal/src/metal/surface.rs b/wgpu-hal/src/metal/surface.rs index b10dd01f09..6cda27a7c7 100644 --- a/wgpu-hal/src/metal/surface.rs +++ b/wgpu-hal/src/metal/surface.rs @@ -271,7 +271,7 @@ impl crate::Surface for super::Surface { if let Some(drawable) = render_layer.next_drawable() { Ok((drawable.to_owned(), drawable.texture().to_owned())) } else { - return Err(crate::SurfaceError::Other("failed to allocate drawable due to metal resource exhaustion")); + Err(crate::SurfaceError::Other("failed to allocate drawable due to metal resource exhaustion")) } })?;