Skip to content

Commit

Permalink
Enable additional rustc and Clippy lints (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
edmorley authored Nov 20, 2023
1 parent 634f458 commit 1ee2143
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ path = "src/main.rs"
strip = true

[lints.rust]
unreachable_pub = "warn"
unsafe_code = "warn"
unused_crate_dependencies = "warn"

[lints.clippy]
panic_in_result_fn = "warn"
pedantic = "warn"
unwrap_used = "warn"

[dependencies]
chrono = "0.4"
Expand Down
1 change: 1 addition & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
allow-unwrap-in-tests = true
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const UNSPECIFIED_ERROR: i32 = 1;

#[derive(Parser)]
#[command(bin_name = "actions")]
pub(crate) enum Cli {
enum Cli {
GenerateBuildpackMatrix(GenerateBuildpackMatrixArgs),
GenerateChangelog(GenerateChangelogArgs),
PrepareRelease(PrepareReleaseArgs),
Expand Down

0 comments on commit 1ee2143

Please sign in to comment.