pre-commit-rust/hooks.yaml
Mathieu Lemay 84b3445a55
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.
2020-04-30 21:11:24 -04:00

15 lines
323 B
YAML

- id: fmt
name: fmt
description: Format files with cargo fmt.
entry: cargo fmt --
language: system
files: \.rs$
args: []
- id: cargo-check
name: cargo check
description: Check the package for errors.
entry: cargo check
language: system
files: \.rs$
pass_filenames: false