Skip to content

Commit 4ffce1c

Browse files
committed
Move lint to Rust lints
1 parent 0513660 commit 4ffce1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ panic = "abort"
207207
unsafe_code = "forbid"
208208
# You don't need unstable features in Rustlings and shouldn't rely on them while learning Rust.
209209
unstable_features = "forbid"
210+
# Dead code warnings can't be avoided in some exercises and might distract while learning.
211+
dead_code = "allow"
210212

211213
[lints.clippy]
212214
# You forgot a `todo!()`!
@@ -217,7 +219,5 @@ empty_loop = "forbid"
217219
infinite_loop = "deny"
218220
# You shouldn't leak memory while still learning Rust!
219221
mem_forget = "deny"
220-
# Dead code warnings can't be avoided in some exercises and might distract while learning.
221-
dead_code = "allow"
222222
# Currently, there are no disallowed methods. This line avoids problems when developing Rustlings.
223223
disallowed_methods = "allow"

0 commit comments

Comments
 (0)