Skip to content

Commit 84b3445

Browse files
committed
Revert "Allow user to send args to cargo fmt, not just to rustfmt"
This actually broke the hook. The -- needs to be present for pre-commit to be able to pass the file names to run the hook on. This reverts commit 4bb2cb5.
1 parent 4bb2cb5 commit 84b3445

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- id: fmt
22
name: fmt
33
description: Format files with cargo fmt.
4-
entry: cargo fmt
4+
entry: cargo fmt --
55
language: system
66
types: [rust]
77
args: []

hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- id: fmt
22
name: fmt
33
description: Format files with cargo fmt.
4-
entry: cargo fmt
4+
entry: cargo fmt --
55
language: system
66
files: \.rs$
77
args: []

0 commit comments

Comments
 (0)