mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Work around a clippy error (#3505)
This commit is contained in:
@@ -485,8 +485,11 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
id.0
|
||||
}
|
||||
|
||||
/// # Safety
|
||||
///
|
||||
/// `layer` must be a valid pointer.
|
||||
#[cfg(feature = "metal")]
|
||||
pub fn instance_create_surface_metal(
|
||||
pub unsafe fn instance_create_surface_metal(
|
||||
&self,
|
||||
layer: *mut std::ffi::c_void,
|
||||
id_in: Input<G, SurfaceId>,
|
||||
|
||||
@@ -195,7 +195,7 @@ impl Context {
|
||||
&self,
|
||||
layer: *mut std::ffi::c_void,
|
||||
) -> Surface {
|
||||
let id = self.0.instance_create_surface_metal(layer, ());
|
||||
let id = unsafe { self.0.instance_create_surface_metal(layer, ()) };
|
||||
Surface {
|
||||
id,
|
||||
configured_device: Mutex::default(),
|
||||
|
||||
Reference in New Issue
Block a user