Added unsafe_op_in_unsafe_fn lint manually due to cargo run not knowing about Cranky.toml.

This commit is contained in:
Filipe Rodrigues 2022-07-27 19:35:11 +01:00
parent 6ddb6fdf42
commit 461ce33a17

View File

@ -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