From fed16287c59cb0a20b4a70bd595579ac5631cb96 Mon Sep 17 00:00:00 2001 From: nullprop Date: Fri, 10 Nov 2023 21:09:42 +0200 Subject: [PATCH] Clippy fixes --- src/core/pass.rs | 2 +- src/core/state.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/pass.rs b/src/core/pass.rs index 4ad60e0..41e5cac 100644 --- a/src/core/pass.rs +++ b/src/core/pass.rs @@ -104,7 +104,7 @@ impl RenderPass { topology: wgpu::PrimitiveTopology::TriangleList, strip_index_format: None, front_face: wgpu::FrontFace::Ccw, - cull_mode: cull_mode, + cull_mode, // Setting this to anything other than Fill requires Features::NON_FILL_POLYGON_MODE polygon_mode: wgpu::PolygonMode::Fill, // Requires Features::DEPTH_CLIP_CONTROL diff --git a/src/core/state.rs b/src/core/state.rs index 0c4611b..bf46d95 100644 --- a/src/core/state.rs +++ b/src/core/state.rs @@ -517,7 +517,7 @@ impl State { pub fn create_geometry_depth_bind_group(device: &wgpu::Device, layout: &wgpu::BindGroupLayout, geometry_depth_texture: &Texture) -> wgpu::BindGroup { device.create_bind_group(&wgpu::BindGroupDescriptor { - layout: layout, + layout, entries: &[ // geometry depth wgpu::BindGroupEntry { @@ -535,7 +535,7 @@ impl State { fn create_geometry_depth_texture(device: &wgpu::Device, config: &wgpu::SurfaceConfiguration) -> Texture { Texture::create_depth_texture( - &device, + device, "geometry_depth_texture", None, config.width,