Skip to content

Commit

Permalink
Decrease priority of rust_2018_idioms lint group.
Browse files Browse the repository at this point in the history
Nightly Clippy doesn't like having lints and groups at the same priority.
I'm not sure if this is a false positive or not (see
<rust-lang/rust-clippy#12270> for a related
discussion) but it seems reasonable to make the change regardless.
  • Loading branch information
kpreid committed Feb 12, 2024
1 parent a1e1572 commit ba421a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ yield-progress = { version = "0.1.5", default-features = false }

# Note: Lints are also necessarily redefined in the workspaces other than this one.
[workspace.lints]
rust.rust_2018_idioms = "deny"
rust.rust_2018_idioms = { level = "deny", priority = -1 }
rust.unsafe_op_in_unsafe_fn = "deny"

rust.explicit_outlives_requirements = "warn"
Expand Down
2 changes: 1 addition & 1 deletion all-is-cubes-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ features = [
wasm-bindgen-test = "0.3"

[lints]
rust.rust_2018_idioms = "deny"
rust.rust_2018_idioms = { level = "deny", priority = -1 }
rust.unsafe_op_in_unsafe_fn = "deny"

rust.explicit_outlives_requirements = "warn"
Expand Down

0 comments on commit ba421a7

Please sign in to comment.