Skip to content

Commit

Permalink
Enhance code quality and safety by updating configuration
Browse files Browse the repository at this point in the history
- Enabled clippy::all to cover all common lints;
- Forbade the use of unsafe code with #![forbid(unsafe_code)];
- Denied dead_code, unused_imports etc.
  • Loading branch information
honhimW committed Dec 11, 2024
1 parent 7b61215 commit 48a6fa5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#![forbid(unsafe_code)]
#![deny(
unused_imports,
unused_must_use,
dead_code,
unstable_name_collisions,
unused_assignments
)]
#![deny(clippy::all, clippy::perf, clippy::nursery, clippy::pedantic)]
#![deny(
clippy::unwrap_used,
clippy::expect_used,
clippy::indexing_slicing,
clippy::filetype_is_file,
clippy::cargo,
clippy::panic,
clippy::match_like_matches_macro,
)]

mod app;
mod cli;
mod configuration;
Expand Down

0 comments on commit 48a6fa5

Please sign in to comment.