diff options
author | 2022-12-20 11:45:38 +0100 | |
---|---|---|
committer | 2022-12-20 11:45:38 +0100 | |
commit | 678de1187994f29e3701740617bb5b1963f80c69 (patch) | |
tree | 2971553e7bb3d2b9278b422f33e27c2c5c79e5d0 /wgpu/src/buffer | |
parent | d2d18479acd987b4a4f6a125c0dda7b2a6661df4 (diff) | |
parent | 6bb01b727611b83592f96b2b89371a12e7ce54d8 (diff) | |
download | iced-678de1187994f29e3701740617bb5b1963f80c69.tar.gz iced-678de1187994f29e3701740617bb5b1963f80c69.tar.bz2 iced-678de1187994f29e3701740617bb5b1963f80c69.zip |
Merge pull request #1611 from iced-rs/fix/clippy-lints
Fix `clippy` lints for Rust 1.66
Diffstat (limited to 'wgpu/src/buffer')
-rw-r--r-- | wgpu/src/buffer/dynamic.rs | 2 |
1 files changed, 1 insertions, 1 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 |