Skip to content

Commit 2630d35

Browse files
Add fmt arguments example to readme
1 parent a76233c commit 2630d35

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,13 @@
1111
- id: fmt
1212
- id: cargo-check
1313
```
14+
15+
## Passing arguments to rustfmt
16+
17+
```yaml
18+
- repo: https://github.com/doublify/pre-commit-rust
19+
rev: master
20+
hooks:
21+
- id: fmt
22+
args: ['--verbose', '--edition', '2018', '--']
23+
```

0 commit comments

Comments
 (0)