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)); }