Skip to content

Commit 1153030

Browse files
authored
Merge pull request #31 from LuisLiraC/chore/clippy-command
Chore/clippy command
2 parents 398b26d + ed10b93 commit 1153030

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/clippy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
${{ runner.os }}-cargo-build-
5252
5353
- name: Run Tests
54-
run: cargo clippy --color always -- -Dwarnings -W clippy::pedantic
54+
run: make clippy

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
clippy:
2+
cargo clippy --all-targets --color always -- -D warnings -W clippy::all

src/tests/unit.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ fn test_create_patterns_filters_single_line() {
88
let filters = create_patterns_filters(arg);
99
assert_eq!(filters.len(), 2);
1010
assert_eq!(filters[0].pattern, "*.rs");
11-
assert_eq!(
12-
filters[0].exclude, false,
11+
assert!(
12+
!filters[0].exclude,
1313
"Expected 'exclude' to be false for pattern '*.rs'"
1414
);
1515
assert_eq!(filters[1].pattern, "test/*.rs");
16-
assert_eq!(filters[1].exclude, true);
16+
assert!(filters[1].exclude);
1717
}
1818

1919
#[test]

0 commit comments

Comments
 (0)