diff options
| author | mo8it <mo8it@proton.me> | 2024-08-16 00:15:33 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-08-16 00:24:45 +0200 |
| commit | c903db5c533b4c047bb47740deb85ebfd467bdcc (patch) | |
| tree | 9d04bbf11d8d709a49d48c4a040ea8d251309484 /Cargo.toml | |
| parent | 8a038b946c9470178f2f72d4824b2475f01ec471 (diff) | |
Add project lints
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -69,6 +69,18 @@ panic = "abort" [package.metadata.release] pre-release-hook = ["./release-hook.sh"] +[workspace.lints.rust] +unsafe_code = "forbid" +unstable_features = "forbid" + +[workspace.lints.clippy] +empty_loop = "forbid" +infinite_loop = "deny" +mem_forget = "deny" +dbg_macro = "warn" +todo = "warn" # TODO: Remove after the following fix is released: https://github.com/rust-lang/rust-clippy/pull/13102 -[lints.clippy] needless_option_as_deref = "allow" + +[lints] +workspace = true |
