Skip to content

Commit 30d7bcc

Browse files
github-actionsseanmonstar
authored andcommitted
doc: update contrib docs
1 parent 1e83f06 commit 30d7bcc

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

_contrib/contributing.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,13 @@ You want to contribute? You're awesome! Don't know where to start? Check the [li
1313

1414
- [Submitting a Pull Request](pull-requests.md#submitting-a-pull-request)
1515
- [Commit Guidelines](commits.md)
16+
17+
## Cargo fmt
18+
`cargo fmt --all` does not work in hyper. Please use the following commands:
19+
```txt
20+
# Mac or Linux
21+
rustfmt --check --edition 2018 $(git ls-files '*.rs')
22+
23+
# Powershell
24+
Get-ChildItem . -Filter "*.rs" -Recurse | foreach { rustfmt --check --edition 2018 $_.FullName }
25+
```

0 commit comments

Comments
 (0)