From 5e83da75992c1d78841b75f9b142361215ef16da Mon Sep 17 00:00:00 2001 From: nanoqsh Date: Thu, 28 Mar 2024 09:47:41 +0500 Subject: [PATCH] Update clippy --- Cargo.toml | 11 ++++++----- dunge/src/texture.rs | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5e33655..c2eeb6b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,14 +34,15 @@ env_logger = "0.11" log = "0.4" [workspace.lints.clippy] -use-self = "deny" -unwrap-used = "deny" -missing-assert-message = "deny" -match-wildcard-for-single-variants = "deny" +cast-lossless = "deny" flat-map-option = "deny" -semicolon-if-nothing-returned = "deny" manual-assert = "deny" +match-wildcard-for-single-variants = "deny" +missing-assert-message = "deny" +semicolon-if-nothing-returned = "deny" trivially-copy-pass-by-ref = "deny" +use-self = "deny" +unwrap-used = "deny" [profile.dev] opt-level = 1 diff --git a/dunge/src/texture.rs b/dunge/src/texture.rs index 0c9d378..d0a356d 100644 --- a/dunge/src/texture.rs +++ b/dunge/src/texture.rs @@ -235,7 +235,7 @@ impl CopyBuffer { let buf = { let desc = BufferDescriptor { label: None, - size: (actual_width * height * PIXEL_SIZE) as BufferAddress, + size: BufferAddress::from(actual_width * height * PIXEL_SIZE), usage: BufferUsages::MAP_READ | BufferUsages::COPY_DST, mapped_at_creation: false, };