Skip to content

Commit 3e5d93c

Browse files
committed
Apply clippy::as_underscore lint
1 parent 98dc380 commit 3e5d93c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.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
@@ -125,6 +125,7 @@ unreachable_pub = "warn"
125125
all = "warn" # Downgrade deny-by-default lints
126126
pedantic = "warn"
127127
as_ptr_cast_mut = "warn"
128+
as_underscore = "warn"
128129
default_union_representation = "warn"
129130
inline_asm_x86_att_syntax = "warn"
130131
trailing_empty_array = "warn"

0 commit comments

Comments
 (0)