mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
remove unnecessary unsafe block
This commit is contained in:
parent
ad2d797f81
commit
bfcb5457c6
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user