From 30d7bcce71389ed9828370597425e11c396ab65e Mon Sep 17 00:00:00 2001 From: github-actions Date: Sat, 17 Jun 2023 03:24:28 +0000 Subject: [PATCH] doc: update contrib docs --- _contrib/contributing.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/_contrib/contributing.md b/_contrib/contributing.md index 15f49db..f34cd14 100644 --- a/_contrib/contributing.md +++ b/_contrib/contributing.md @@ -13,3 +13,13 @@ You want to contribute? You're awesome! Don't know where to start? Check the [li - [Submitting a Pull Request](pull-requests.md#submitting-a-pull-request) - [Commit Guidelines](commits.md) + +## Cargo fmt +`cargo fmt --all` does not work in hyper. Please use the following commands: +```txt +# Mac or Linux +rustfmt --check --edition 2018 $(git ls-files '*.rs') + +# Powershell +Get-ChildItem . -Filter "*.rs" -Recurse | foreach { rustfmt --check --edition 2018 $_.FullName } +``` \ No newline at end of file