From 302d6c42d1c05474fb41fd6d282e580107c8d396 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Wed, 6 Oct 2021 12:23:35 -0400 Subject: [PATCH] Remove !Send + !Sync on command encoders --- wgpu/src/lib.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index b89574a24e..88b4b8925b 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -878,9 +878,6 @@ impl Drop for CommandBuffer { pub struct CommandEncoder { context: Arc, id: Option<::CommandEncoderId>, - /// This type should be !Send !Sync, because it represents an allocation on this thread's - /// command buffer. - _p: PhantomData<*const u8>, } impl Drop for CommandEncoder { @@ -1726,7 +1723,6 @@ impl Device { &self.id, desc, )), - _p: Default::default(), } }