diff --git a/Cargo.toml b/Cargo.toml index bdaa5b2..ef96cd3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,15 @@ version = "0.4" default-features = false features = ["std", "clock"] +[lints.rust] +unsafe_code = "forbid" + +[lints.clippy] +pedantic = "warn" +todo = "warn" +unwrap_used = "warn" +inline_always = "allow" + [profile.release] lto = true debug = false diff --git a/src/main.rs b/src/main.rs index 324056a..6e60102 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,3 @@ -#![warn(clippy::pedantic)] -#![warn(clippy::todo)] -#![warn(clippy::unwrap_used)] -#![allow(clippy::inline_always)] - use std::{ env::args, fs::File,