diff options
author | 2022-12-20 11:31:25 +0100 | |
---|---|---|
committer | 2022-12-20 11:31:25 +0100 | |
commit | 6bb01b727611b83592f96b2b89371a12e7ce54d8 (patch) | |
tree | c75ba7d21b0bec1f5000b6e4ababff923d09387c /wgpu/src | |
parent | e0c728c62c6fd9496de1d442e7476e24fc5e9023 (diff) | |
download | iced-6bb01b727611b83592f96b2b89371a12e7ce54d8.tar.gz iced-6bb01b727611b83592f96b2b89371a12e7ce54d8.tar.bz2 iced-6bb01b727611b83592f96b2b89371a12e7ce54d8.zip |
Fix `clippy` lints for Rust 1.66
Diffstat (limited to '')
-rw-r--r-- | wgpu/src/buffer/dynamic.rs | 2 | ||||
-rw-r--r-- | wgpu/src/triangle.rs | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/wgpu/src/buffer/dynamic.rs b/wgpu/src/buffer/dynamic.rs index 18be03dd..88289b98 100644 --- a/wgpu/src/buffer/dynamic.rs +++ b/wgpu/src/buffer/dynamic.rs @@ -80,7 +80,7 @@ impl<T: ShaderType + WriteInto> Buffer<T> { pub fn push(&mut self, value: &T) { //this write operation on the cpu buffer will adjust for uniform alignment requirements let offset = self.cpu.write(value); - self.offsets.push(offset as u32); + self.offsets.push(offset); } /// Resize buffer contents if necessary. This will re-create the GPU buffer if current size is diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index b33b488a..061154b6 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -331,11 +331,7 @@ impl Pipeline { wgpu::IndexFormat::Uint32, ); - render_pass.draw_indexed( - 0..(self.index_strides[index] as u32), - 0, - 0..1, - ); + render_pass.draw_indexed(0..self.index_strides[index], 0, 0..1); } } |