File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,12 @@ jobs:
17
17
name : Lint
18
18
runs-on : ubuntu-latest
19
19
steps :
20
- - uses : actions/checkout@v2
20
+ - uses : actions/checkout@v4
21
21
22
- - uses : swatinem/rust-cache@81d053bdb0871dcd3f10763c8cc60d0adc41762b # pin@v1
23
- with :
24
- key : ${{ github.job }}
22
+ - name : Install Rust Toolchain
23
+ run : rustup toolchain install stable --profile minimal --component clippy --component rustfmt --no-self-update
24
+
25
+ - uses : swatinem/rust-cache@v2
25
26
26
27
- name : Run Rustfmt
27
28
run : cargo fmt --all -- --check
Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ use rstest::rstest;
5
5
use testing_logger:: CapturedLog ;
6
6
7
7
/// Asserts that the logs vector is empty.
8
+ #[ allow( clippy:: ptr_arg) ] // This function signature is required by testing_logger
8
9
fn assert_no_logs ( logs : & Vec < CapturedLog > ) {
9
10
assert ! ( logs. is_empty( ) ) ;
10
11
}
11
12
12
13
/// Asserts that the logs vector contains exactly one warning.
14
+ #[ allow( clippy:: ptr_arg) ] // This function signature is required by testing_logger
13
15
fn assert_one_warning ( logs : & Vec < CapturedLog > ) {
14
16
assert_eq ! ( logs. len( ) , 1 ) ;
15
17
assert_eq ! ( logs[ 0 ] . level, log:: Level :: Warn ) ;
You can’t perform that action at this time.
0 commit comments