summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-09-13 14:59:34 +0200
committermo8it <mo8it@proton.me>2024-09-13 14:59:34 +0200
commit4ffce1c2971d127149e5530a94504664d9d5bc50 (patch)
tree23356e5d6c61d2be5e871b0af0c6ae0b91ed0b45 /dev
parent0513660b05e8dd45ba7bb25fff89b4fd089b14ea (diff)
Move lint to Rust lints
Diffstat (limited to 'dev')
-rw-r--r--dev/Cargo.toml4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/Cargo.toml b/dev/Cargo.toml
index fbb093d..29a557a 100644
--- a/dev/Cargo.toml
+++ b/dev/Cargo.toml
@@ -207,6 +207,8 @@ panic = "abort"
unsafe_code = "forbid"
# You don't need unstable features in Rustlings and shouldn't rely on them while learning Rust.
unstable_features = "forbid"
+# Dead code warnings can't be avoided in some exercises and might distract while learning.
+dead_code = "allow"
[lints.clippy]
# You forgot a `todo!()`!
@@ -217,7 +219,5 @@ empty_loop = "forbid"
infinite_loop = "deny"
# You shouldn't leak memory while still learning Rust!
mem_forget = "deny"
-# Dead code warnings can't be avoided in some exercises and might distract while learning.
-dead_code = "allow"
# Currently, there are no disallowed methods. This line avoids problems when developing Rustlings.
disallowed_methods = "allow"