Skip to content

Commit b51496d

Browse files
ci: Updates to lint GH action (#1935)
1 parent be79217 commit b51496d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ jobs:
1717
name: Lint
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121

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
2526

2627
- name: Run Rustfmt
2728
run: cargo fmt --all -- --check

src/utils/auth_token/test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ use rstest::rstest;
55
use testing_logger::CapturedLog;
66

77
/// Asserts that the logs vector is empty.
8+
#[allow(clippy::ptr_arg)] // This function signature is required by testing_logger
89
fn assert_no_logs(logs: &Vec<CapturedLog>) {
910
assert!(logs.is_empty());
1011
}
1112

1213
/// Asserts that the logs vector contains exactly one warning.
14+
#[allow(clippy::ptr_arg)] // This function signature is required by testing_logger
1315
fn assert_one_warning(logs: &Vec<CapturedLog>) {
1416
assert_eq!(logs.len(), 1);
1517
assert_eq!(logs[0].level, log::Level::Warn);

0 commit comments

Comments
 (0)