Skip to content

Commit

Permalink
feat: turn on clippy pedantic
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverNChalk committed Sep 13, 2024
1 parent d2eb7d9 commit 7d45827
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ edition = "2021"
readme = "README.md"

[lints.clippy]
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_sign_loss = "warn"
pedantic = "warn"

# See `clippy.toml`.
disallowed_methods = "warn"
arithmetic_side_effects = "warn"
match_bool = "allow"
module_name_repetitions = "allow"

[dependencies]
clap = { version = "4.2.7", features = ["derive"] }
Expand Down
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ async fn main() {

// Parse .env if it exists.
match dotenvy::dotenv() {
Err(dotenvy::Error::Io(_)) => {}
Ok(_) | Err(dotenvy::Error::Io(_)) => {}
Err(err) => panic!("Failed to parse .env file; err={err}"),
Ok(_) => {}
}

// Log build information.
Expand Down

0 comments on commit 7d45827

Please sign in to comment.