diff --git a/wgpu-core/src/command/query.rs b/wgpu-core/src/command/query.rs index f6601bddd..35facbf26 100644 --- a/wgpu-core/src/command/query.rs +++ b/wgpu-core/src/command/query.rs @@ -15,20 +15,18 @@ use crate::{ track::{StatelessTracker, TrackerIndex}, FastHashMap, }; -use std::{iter, marker::PhantomData, sync::Arc}; +use std::{iter, sync::Arc}; use thiserror::Error; use wgt::BufferAddress; #[derive(Debug)] pub(crate) struct QueryResetMap { map: FastHashMap, Arc>)>, - _phantom: PhantomData, } impl QueryResetMap { pub fn new() -> Self { Self { map: FastHashMap::default(), - _phantom: PhantomData, } } diff --git a/wgpu-core/src/track/buffer.rs b/wgpu-core/src/track/buffer.rs index 8f203dc28..348c809f9 100644 --- a/wgpu-core/src/track/buffer.rs +++ b/wgpu-core/src/track/buffer.rs @@ -5,7 +5,7 @@ * one subresource, they have no selector. !*/ -use std::{marker::PhantomData, sync::Arc}; +use std::sync::Arc; use super::{PendingTransition, TrackerIndex}; use crate::{ @@ -43,15 +43,11 @@ impl ResourceUses for BufferUses { #[derive(Debug)] pub(crate) struct BufferBindGroupState { buffers: Mutex>, BufferUses)>>, - - _phantom: PhantomData, } impl BufferBindGroupState { pub fn new() -> Self { Self { buffers: Mutex::new(rank::BUFFER_BIND_GROUP_STATE_BUFFERS, Vec::new()), - - _phantom: PhantomData, } } diff --git a/wgpu-core/src/track/texture.rs b/wgpu-core/src/track/texture.rs index 79c0b2d38..1c04e5de9 100644 --- a/wgpu-core/src/track/texture.rs +++ b/wgpu-core/src/track/texture.rs @@ -37,7 +37,7 @@ use naga::FastHashMap; use wgt::{strict_assert, strict_assert_eq}; -use std::{iter, marker::PhantomData, ops::Range, sync::Arc, vec::Drain}; +use std::{iter, ops::Range, sync::Arc, vec::Drain}; /// Specifies a particular set of subresources in a texture. #[derive(Clone, Debug, PartialEq, Eq)] @@ -378,8 +378,6 @@ pub(crate) struct TextureTracker { metadata: ResourceMetadata>>, temp: Vec>, - - _phantom: PhantomData, } impl TextureTracker { @@ -391,8 +389,6 @@ impl TextureTracker { metadata: ResourceMetadata::new(), temp: Vec::new(), - - _phantom: PhantomData, } }