Skip to content

Commit e323817

Browse files
chore: satisfy unused_qualifications _again_ 😩
1 parent 4e9a2a5 commit e323817

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎wgpu-hal/src/dx12/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ pub struct Instance {
367367
}
368368

369369
impl Instance {
370-
pub unsafe fn create_surface_from_visual(&self, visual: *mut std::ffi::c_void) -> Surface {
370+
pub unsafe fn create_surface_from_visual(&self, visual: *mut ffi::c_void) -> Surface {
371371
let visual = unsafe { DirectComposition::IDCompositionVisual::from_raw_borrowed(&visual) }
372372
.expect("COM pointer should not be NULL");
373373
Surface {
@@ -381,7 +381,7 @@ impl Instance {
381381

382382
pub unsafe fn create_surface_from_surface_handle(
383383
&self,
384-
surface_handle: *mut std::ffi::c_void,
384+
surface_handle: *mut ffi::c_void,
385385
) -> Surface {
386386
// 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.
387387
// 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 {
398398

399399
pub unsafe fn create_surface_from_swap_chain_panel(
400400
&self,
401-
swap_chain_panel: *mut std::ffi::c_void,
401+
swap_chain_panel: *mut ffi::c_void,
402402
) -> Surface {
403403
let swap_chain_panel =
404404
unsafe { types::ISwapChainPanelNative::from_raw_borrowed(&swap_chain_panel) }

‎wgpu-hal/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ impl Drop for DropGuard {
327327
}
328328

329329
#[cfg(any(gles, vulkan))]
330-
impl std::fmt::Debug for DropGuard {
330+
impl fmt::Debug for DropGuard {
331331
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
332332
f.debug_struct("DropGuard").finish()
333333
}

0 commit comments

Comments
 (0)