From e323817425fe7ed2331212454a9ac422e11a563e Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 28 Aug 2024 13:51:19 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20satisfy=20`unused=5Fqualifications`=20?= =?UTF-8?q?=5Fagain=5F=20=F0=9F=98=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wgpu-hal/src/dx12/mod.rs | 6 +++--- wgpu-hal/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wgpu-hal/src/dx12/mod.rs b/wgpu-hal/src/dx12/mod.rs index 16bb88600..28556e96e 100644 --- a/wgpu-hal/src/dx12/mod.rs +++ b/wgpu-hal/src/dx12/mod.rs @@ -367,7 +367,7 @@ pub struct Instance { } impl Instance { - pub unsafe fn create_surface_from_visual(&self, visual: *mut std::ffi::c_void) -> Surface { + pub unsafe fn create_surface_from_visual(&self, visual: *mut ffi::c_void) -> Surface { let visual = unsafe { DirectComposition::IDCompositionVisual::from_raw_borrowed(&visual) } .expect("COM pointer should not be NULL"); Surface { @@ -381,7 +381,7 @@ impl Instance { pub unsafe fn create_surface_from_surface_handle( &self, - surface_handle: *mut std::ffi::c_void, + surface_handle: *mut ffi::c_void, ) -> Surface { // TODO: We're not given ownership, so we shouldn't call HANDLE::free(). This puts an extra burden on the caller to keep it alive. // https://learn.microsoft.com/en-us/windows/win32/api/handleapi/nf-handleapi-duplicatehandle could help us, even though DirectComposition is not in the list? @@ -398,7 +398,7 @@ impl Instance { pub unsafe fn create_surface_from_swap_chain_panel( &self, - swap_chain_panel: *mut std::ffi::c_void, + swap_chain_panel: *mut ffi::c_void, ) -> Surface { let swap_chain_panel = unsafe { types::ISwapChainPanelNative::from_raw_borrowed(&swap_chain_panel) } diff --git a/wgpu-hal/src/lib.rs b/wgpu-hal/src/lib.rs index 92afa71d4..20ce8150c 100644 --- a/wgpu-hal/src/lib.rs +++ b/wgpu-hal/src/lib.rs @@ -327,7 +327,7 @@ impl Drop for DropGuard { } #[cfg(any(gles, vulkan))] -impl std::fmt::Debug for DropGuard { +impl fmt::Debug for DropGuard { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("DropGuard").finish() }