Skip to content

Commit 9d9d9cc

Browse files
committed
Apply clippy::as_underscore lint
1 parent e31a9ae commit 9d9d9cc

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.clippy.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ disallowed-methods = [
1010
{ path = "std::env::remove_var", reason = "this is not thread-safe and inherently unsafe; see <https://github.com/rust-lang/rust/issues/27970> for more" },
1111
{ path = "std::env::set_var", reason = "this is not thread-safe and inherently unsafe; see <https://github.com/rust-lang/rust/issues/27970> for more" },
1212
]
13-
disallowed-types = []
13+
disallowed-types = [
14+
]

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ unsafe_op_in_unsafe_fn = "warn"
6262
all = "warn" # Downgrade deny-by-default lints
6363
pedantic = "warn"
6464
as_ptr_cast_mut = "warn"
65+
as_underscore = "warn"
6566
default_union_representation = "warn"
6667
inline_asm_x86_att_syntax = "warn"
6768
trailing_empty_array = "warn"

0 commit comments

Comments
 (0)