Skip to content

Commit 915f859

Browse files
committed
Add --all-targets flags
1 parent 4cc3ded commit 915f859

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,17 @@ jobs:
181181
override: true
182182
profile: default
183183

184-
- name: '`cargo clippy ${{ matrix.features }} -- -D warnings`'
184+
- name: '`cargo clippy --all-targets ${{ matrix.features }} -- -D warnings`'
185185
uses: actions-rs/cargo@v1
186186
with:
187187
command: clippy
188-
args: ${{ matrix.features }} -- -D warnings
188+
args: --all-targets ${{ matrix.features }} -- -D warnings
189189

190-
- name: '`cargo test ${{ matrix.features }} --no-fail-fast`'
190+
- name: '`cargo test --all-targets ${{ matrix.features }} --no-fail-fast`'
191191
uses: actions-rs/cargo@v1
192192
with:
193193
command: test
194-
args: ${{ matrix.features }} --no-fail-fast
194+
args: --all-targets ${{ matrix.features }} --no-fail-fast
195195

196196
- name: '`cargo run --release`'
197197
uses: actions-rs/cargo@v1

tests/test_num_derive.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use num_derive::{FromPrimitive, Num, NumCast, NumOps, One, ToPrimitive, Zero};
1818
)]
1919
struct Weight(i32);
2020

21+
#[allow(clippy::eq_op)]
2122
#[test]
2223
fn check_ops() {
2324
let w1 = Weight(7);

0 commit comments

Comments
 (0)