diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 83b5148..3673baa 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -17,6 +17,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.3 + - name: Clean rustup + run: rm -rf ~/.rustup - uses: actions/cache@v4.0.2 with: path: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fdcd5dd..43cd8bd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,12 +3,15 @@ ci: autoupdate_branch: 'trunk' autofix_prs: false +default_language_version: + rust: 1.78.0 + repos: -- repo: https://github.com/backplane/pre-commit-rust-hooks - rev: v1.1.0 +- repo: https://github.com/Young-Naive-Simple/pre-commit-rust/ + rev: 3a8de64acc969112746489e5ec1f0b13e00d871e hooks: - id: fmt - - id: check + - id: cargo-check - id: clippy args: - --all-targets diff --git a/src/cli/submit.rs b/src/cli/submit.rs index 4774cbc..0d9f1ee 100644 --- a/src/cli/submit.rs +++ b/src/cli/submit.rs @@ -111,7 +111,7 @@ pub fn submit( } } - action_groups.push((&action, groups)); + action_groups.push((action, groups)); } if matching_action_count == 0 {