diff options
| author | mo8it <mo8it@proton.me> | 2024-09-13 14:56:46 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-09-13 14:56:46 +0200 |
| commit | 0513660b05e8dd45ba7bb25fff89b4fd089b14ea (patch) | |
| tree | e7c1af45ef8ed8f2189e4df8359f5e666ad02ce9 /dev/Cargo.toml | |
| parent | 3947c4de284cb82945055a0fe802c2755e951bb9 (diff) | |
Allow dead code for all exercises and solutions
Diffstat (limited to 'dev/Cargo.toml')
| -rw-r--r-- | dev/Cargo.toml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/dev/Cargo.toml b/dev/Cargo.toml index 2accf3a..fbb093d 100644 --- a/dev/Cargo.toml +++ b/dev/Cargo.toml @@ -203,19 +203,21 @@ panic = "abort" panic = "abort" [lints.rust] -# You shouldn't write unsafe code in Rustlings +# 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 +# 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!()` +# You forgot a `todo!()`! todo = "forbid" -# This can only happen by mistake in Rustlings +# This can only happen by mistake in Rustlings. empty_loop = "forbid" -# No infinite loops are needed in Rustlings +# No infinite loops are needed in Rustlings. infinite_loop = "deny" -# You shouldn't leak memory while still learning Rust +# 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" |
