Skip to content

Commit 7d45827

Browse files
committed
feat: turn on clippy pedantic
1 parent d2eb7d9 commit 7d45827

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ edition = "2021"
66
readme = "README.md"
77

88
[lints.clippy]
9-
cast_possible_truncation = "warn"
10-
cast_possible_wrap = "warn"
11-
cast_sign_loss = "warn"
9+
pedantic = "warn"
10+
1211
# See `clippy.toml`.
1312
disallowed_methods = "warn"
13+
arithmetic_side_effects = "warn"
14+
match_bool = "allow"
15+
module_name_repetitions = "allow"
1416

1517
[dependencies]
1618
clap = { version = "4.2.7", features = ["derive"] }

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ async fn main() {
3333

3434
// Parse .env if it exists.
3535
match dotenvy::dotenv() {
36-
Err(dotenvy::Error::Io(_)) => {}
36+
Ok(_) | Err(dotenvy::Error::Io(_)) => {}
3737
Err(err) => panic!("Failed to parse .env file; err={err}"),
38-
Ok(_) => {}
3938
}
4039

4140
// Log build information.

0 commit comments

Comments
 (0)