mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
remove unnecessary unsafe block
This commit is contained in:
1 parent
ad2d797f81
commit
bfcb5457c6
1 file changed
+1
-2
@@ -795,7 +795,6 @@ impl Global {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unused_unsafe)]
|
||||
pub fn texture_create_view<A: HalApi>(
|
||||
&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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user