Skip to content

Commit

Permalink
remove unnecessary unsafe block
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy committed Jun 25, 2024
1 parent ad2d797 commit bfcb545
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wgpu-core/src/device/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,6 @@ impl Global {
}
}

#[allow(unused_unsafe)]
pub fn texture_create_view<A: HalApi>(
&self,
texture_id: id::TextureId,
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit bfcb545

Please sign in to comment.