From d70c06dca6bbd098d560247b01231798c6ae8930 Mon Sep 17 00:00:00 2001 From: "Joshua A. Anderson" Date: Wed, 15 May 2024 11:16:22 -0400 Subject: [PATCH] Use rust-enabled pre-commit configuration. This should work on pre-commit.ci. --- .pre-commit-config.yaml | 9 ++++++--- src/cli/submit.rs | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) 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 {