Skip to content

Commit

Permalink
Use rust-enabled pre-commit configuration.
Browse files Browse the repository at this point in the history
This should work on pre-commit.ci.
  • Loading branch information
joaander committed May 15, 2024
1 parent c53f0b8 commit 0c4489a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Clean rustup
run: rm -rf ~/.rustup
- uses: actions/[email protected]
with:
path: |
Expand Down
9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/cli/submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub fn submit<W: Write>(
}
}

action_groups.push((&action, groups));
action_groups.push((action, groups));
}

if matching_action_count == 0 {
Expand Down

0 comments on commit 0c4489a

Please sign in to comment.