Skip to content

Commit

Permalink
chore: check-code should fail on clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thevaibhav-dixit committed Jan 19, 2024
1 parent 616a98f commit bfa09e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ version = "0.1.7-dev"
edition = "2021"
license = "MIT"

[features]

fail-on-warnings = []

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#![cfg_attr(feature = "fail-on-warnings", deny(warnings))]
#![cfg_attr(feature = "fail-on-warnings", deny(clippy::all))]

mod app;
mod client;

Expand Down

0 comments on commit bfa09e0

Please sign in to comment.