From 0b5fb25af7f5b3cd70b599c0067b6c53b564f1c1 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 24 Jul 2024 10:34:25 -0400 Subject: [PATCH] chore: satisfy `clippy::unused_qualifications` --- wgpu-core/src/device/queue.rs | 2 +- wgpu-hal/src/dx12/device.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu-core/src/device/queue.rs b/wgpu-core/src/device/queue.rs index f5bc296534d..625395fdc1c 100644 --- a/wgpu-core/src/device/queue.rs +++ b/wgpu-core/src/device/queue.rs @@ -70,7 +70,7 @@ impl Drop for Queue { fn drop(&mut self) { resource_log!("Drop {}", self.error_ident()); // SAFETY: we never access `self.raw` beyond this point. - let queue = unsafe { std::mem::ManuallyDrop::take(&mut self.raw) }; + let queue = unsafe { ManuallyDrop::take(&mut self.raw) }; self.device.release_queue(queue); } } diff --git a/wgpu-hal/src/dx12/device.rs b/wgpu-hal/src/dx12/device.rs index e08388b20b5..fa3e828fba3 100644 --- a/wgpu-hal/src/dx12/device.rs +++ b/wgpu-hal/src/dx12/device.rs @@ -1816,7 +1816,7 @@ impl crate::Device for super::Device { .allocations .iter_mut() .map(|alloc| wgt::AllocationReport { - name: std::mem::take(&mut alloc.name), + name: mem::take(&mut alloc.name), offset: alloc.offset, size: alloc.size, })