mirror of
https://github.com/Zenithsiz/zsw.git
synced 2026-02-04 02:08:37 +00:00
Added unsafe_op_in_unsafe_fn lint manually due to cargo run not knowing about Cranky.toml.
This commit is contained in:
parent
6ddb6fdf42
commit
461ce33a17
@ -242,6 +242,7 @@ async unsafe fn create_surface_and_adapter(window: &Window) -> Result<(wgpu::Sur
|
||||
// Create the surface
|
||||
// SAFETY: Caller promises the window outlives the surface
|
||||
tracing::debug!(?window, "Creating wgpu surface");
|
||||
#[deny(unsafe_op_in_unsafe_fn)]
|
||||
let surface = unsafe { instance.create_surface(window) };
|
||||
|
||||
// Then request the adapter
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user