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 3914323
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 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 All @@ -25,10 +28,10 @@ repos:
- id: check-yaml
- id: check-case-conflict
- id: mixed-line-ending
- repo: https://github.com/rhysd/actionlint
rev: v1.6.27
hooks:
- id: actionlint
# - repo: https://github.com/rhysd/actionlint
# rev: v1.6.27
# hooks:
# - id: actionlint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.3.4'
hooks:
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 3914323

Please sign in to comment.