From 4bb2cb56a19f1f12165d1dfd9b53697034001e09 Mon Sep 17 00:00:00 2001 From: Mathieu Lemay Date: Tue, 7 Apr 2020 10:34:50 -0400 Subject: [PATCH] Allow user to send args to cargo fmt, not just to rustfmt --- .pre-commit-hooks.yaml | 2 +- hooks.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 9ddb1e1..ac6f286 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,7 +1,7 @@ - id: fmt name: fmt description: Format files with cargo fmt. - entry: cargo fmt -- + entry: cargo fmt language: system types: [rust] args: [] diff --git a/hooks.yaml b/hooks.yaml index ca02623..dd89e3a 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -1,7 +1,7 @@ - id: fmt name: fmt description: Format files with cargo fmt. - entry: cargo fmt -- + entry: cargo fmt language: system files: \.rs$ args: []