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")) } })?;