From dfe6967f376548e597b5c999c3559d0fb9193759 Mon Sep 17 00:00:00 2001 From: Victor Mignot Date: Wed, 1 Jan 2025 15:08:42 +0100 Subject: [PATCH] cargo: switch lint rules from the main crate to `Cargo.toml` --- Cargo.toml | 4 ++++ src/main.rs | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3c1473d..780ab24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,7 @@ serde = { version = "1.0", features = [ "derive" ] } log4rs = { version = "1.2.0", features = [ "console_appender", "rolling_file_appender", "compound_policy", "fixed_window_roller", "size_trigger", "gzip", "background_rotation" ] } log = "0.4.17" futures = "0.3.25" + +[lints.rust] +unsafe_code= "forbid" +missing_docs = "forbid" diff --git a/src/main.rs b/src/main.rs index 407d91e..f5671fe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,9 +3,6 @@ //! //! [`Serenity`]: https://github.com/serenity-rs/serenity -#![deny(missing_docs)] -#![deny(warnings)] - mod client; mod database; mod discord;