diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index b057b13..3cd05c4 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -11,6 +11,19 @@ rust-version = "1.65" keywords = ["pomodoro", "timer", "tauri", "gui", "oblique"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints.rust] +unsafe_code = "forbid" + +[lints.clippy] +expect_used = "warn" +nursery = "warn" +pedantic = "warn" +todo = "warn" +unused_async = "warn" +unwrap_used = "warn" +module_name_repetitions = "allow" +doc_markdown = "allow" + [build-dependencies] tauri-build = { version = "1.3", features = [] } diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index d3f1259..ddbf289 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -1,13 +1,3 @@ -#![forbid(unsafe_code)] -#![warn( - clippy::expect_used, - clippy::nursery, - clippy::pedantic, - clippy::todo, - clippy::unused_async, - clippy::unwrap_used -)] -#![allow(clippy::module_name_repetitions, clippy::doc_markdown)] // Only allow when debugging // #![allow(unused)] #![cfg_attr(