mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
Work around a clippy error (#3505)
This commit is contained in:
1 parent
e18520078a
commit
8f1db56fc0
2 files changed
+5
-2
No files matched your search
@@ -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