From 3c6bb0a076c4433abe2a381856250c9d9693404e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Thu, 11 Jan 2024 14:45:40 +0000 Subject: [PATCH] wgpu: require `Send` on stored pipelines --- wgpu/src/primitive/pipeline.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu/src/primitive/pipeline.rs b/wgpu/src/primitive/pipeline.rs index 302e38f68f..c8e45458c7 100644 --- a/wgpu/src/primitive/pipeline.rs +++ b/wgpu/src/primitive/pipeline.rs @@ -82,7 +82,7 @@ impl Renderer for crate::Renderer { /// Stores custom, user-provided pipelines. #[derive(Default, Debug)] pub struct Storage { - pipelines: HashMap>, + pipelines: HashMap>, } impl Storage { @@ -92,7 +92,7 @@ impl Storage { } /// Inserts the pipeline `T` in to [`Storage`]. - pub fn store(&mut self, pipeline: T) { + pub fn store(&mut self, pipeline: T) { let _ = self.pipelines.insert(TypeId::of::(), Box::new(pipeline)); }