From bfcb5457c6edbd6af8b99eb7edcd13a6fd94c738 Mon Sep 17 00:00:00 2001 From: teoxoy <28601907+teoxoy@users.noreply.github.com> Date: Fri, 21 Jun 2024 20:09:07 +0200 Subject: [PATCH] remove unnecessary unsafe block --- wgpu-core/src/device/global.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wgpu-core/src/device/global.rs b/wgpu-core/src/device/global.rs index ec53976785..3138ccf8f0 100644 --- a/wgpu-core/src/device/global.rs +++ b/wgpu-core/src/device/global.rs @@ -795,7 +795,6 @@ impl Global { } } - #[allow(unused_unsafe)] pub fn texture_create_view( &self, texture_id: id::TextureId, @@ -833,7 +832,7 @@ impl Global { } } - let view = match unsafe { device.create_texture_view(&texture, desc) } { + let view = match device.create_texture_view(&texture, desc) { Ok(view) => view, Err(e) => break 'error e, };