summaryrefslogtreecommitdiff
path: root/dev/Cargo.toml
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-08-16 00:24:38 +0200
committermo8it <mo8it@proton.me>2024-08-16 00:24:45 +0200
commit0b3ad9141bc6a04d5216f8dec0163f92bcee4804 (patch)
treef006d7951aef3474a92b8cc02516d75ae1b9c043 /dev/Cargo.toml
parentc903db5c533b4c047bb47740deb85ebfd467bdcc (diff)
Add exercise lints
Diffstat (limited to 'dev/Cargo.toml')
-rw-r--r--dev/Cargo.toml16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev/Cargo.toml b/dev/Cargo.toml
index d814ba2..7bde359 100644
--- a/dev/Cargo.toml
+++ b/dev/Cargo.toml
@@ -201,3 +201,19 @@ panic = "abort"
[profile.dev]
panic = "abort"
+
+[lints.rust]
+# You shouldn't write unsafe code in Rustlings
+unsafe_code = "forbid"
+# You don't need unstable features in Rustlings and shouldn't rely on them while learning Rust
+unstable_features = "forbid"
+
+[lints.clippy]
+# You forgot a `todo!()`
+todo = "forbid"
+# This can only happen by mistake in Rustlings
+empty_loop = "forbid"
+# No infinite loops are needed in Rustlings
+infinite_loop = "deny"
+# You shouldn't leak memory while still learning Rust
+mem_forget = "deny"