Skip to content

Commit

Permalink
feat: add clippy to pipeline (#53)
Browse files Browse the repository at this point in the history
* feat: add clippy to pipeline

* fix: lint

* fix: lint

---------

Co-authored-by: mike <mike@smartive.ch>
  • Loading branch information
mike-schmid and mike authored Oct 26, 2024
1 parent 93f1899 commit e9d3c0c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on: push
name: Clippy check

# Make sure CI fails on all warnings, including Clippy lints
env:
RUSTFLAGS: "-Dwarnings"

jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Clippy
run: cargo clippy --all-targets --all-features
2 changes: 1 addition & 1 deletion src/qr_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ mod tests {
"#};

let qr_code_data = get_qr_code_data(&MY_CONST.to_string())?;
let qr_code_data = get_qr_code_data(MY_CONST)?;

let expected = QRData::new(
"CH6431961000004421557".to_string(),
Expand Down

0 comments on commit e9d3c0c

Please # to comment.