From af6b8155c6aa83dff706463ead974eb80a72ec02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Mon, 24 Mar 2025 19:36:02 +0100 Subject: [PATCH] Fix `cargo lint` issues --- wgpu/src/lib.rs | 2 +- wgpu/src/primitive.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index 8c5a759a..b39defa8 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -238,7 +238,7 @@ impl Renderer { let view = texture.create_view(&wgpu::TextureViewDescriptor::default()); - let mut encoder = self.draw(Some(background_color), &view, &viewport); + let mut encoder = self.draw(Some(background_color), &view, viewport); let texture = crate::color::convert( &self.engine.device, diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs index 8641f27a..c8bcb65d 100644 --- a/wgpu/src/primitive.rs +++ b/wgpu/src/primitive.rs @@ -61,7 +61,7 @@ pub trait Renderer: core::Renderer { /// Stores custom, user-provided types. #[derive(Default, Debug)] pub struct Storage { - pipelines: FxHashMap>, + pipelines: FxHashMap>, } impl Storage { @@ -71,7 +71,7 @@ impl Storage { } /// Inserts the data `T` in to [`Storage`]. - pub fn store(&mut self, data: T) { + pub fn store(&mut self, data: T) { let _ = self.pipelines.insert(TypeId::of::(), Box::new(data)); }