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 4bb2cb56a1
.
This commit is contained in:
parent
4bb2cb56a1
commit
84b3445a55
|
@ -1,7 +1,7 @@
|
||||||
- id: fmt
|
- id: fmt
|
||||||
name: fmt
|
name: fmt
|
||||||
description: Format files with cargo fmt.
|
description: Format files with cargo fmt.
|
||||||
entry: cargo fmt
|
entry: cargo fmt --
|
||||||
language: system
|
language: system
|
||||||
types: [rust]
|
types: [rust]
|
||||||
args: []
|
args: []
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
- id: fmt
|
- id: fmt
|
||||||
name: fmt
|
name: fmt
|
||||||
description: Format files with cargo fmt.
|
description: Format files with cargo fmt.
|
||||||
entry: cargo fmt
|
entry: cargo fmt --
|
||||||
language: system
|
language: system
|
||||||
files: \.rs$
|
files: \.rs$
|
||||||
args: []
|
args: []
|
||||||
|
|
Loading…
Reference in a new issue