Skip to content

Commit

Permalink
chore: lints moved from main.rs to Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackwills committed Nov 21, 2023
1 parent 92656b7 commit 99e9ff2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
13 changes: 13 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [] }

Expand Down
10 changes: 0 additions & 10 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -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(
Expand Down

0 comments on commit 99e9ff2

Please sign in to comment.