Skip to content

Commit

Permalink
Update clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoqsh committed Mar 28, 2024
1 parent fd2a43a commit 5e83da7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dunge/src/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 5e83da7

Please sign in to comment.