Skip to content

Commit

Permalink
doc: update contrib docs
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions authored and seanmonstar committed Feb 26, 2024
1 parent 701fb3e commit 28e0bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _contrib/code-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ hyper uses the default configuration of `rustfmt`.

```txt
# Mac or Linux
rustfmt --check --edition 2018 $(git ls-files '*.rs')
rustfmt --check --edition 2021 $(git ls-files '*.rs')
# Powershell
Get-ChildItem . -Filter "*.rs" -Recurse | foreach { rustfmt --check --edition 2018 $_.FullName }
Get-ChildItem . -Filter "*.rs" -Recurse | foreach { rustfmt --check --edition 2021 $_.FullName }
```

> **NOTE**: If you are using `rust-analyzer`, you can add the following two lines in your `settings.json` to make sure the features get taken into account when checking the project:
Expand Down

0 comments on commit 28e0bc6

Please sign in to comment.