Skip to content

Commit 28e0bc6

Browse files
github-actionsseanmonstar
github-actions
authored andcommitted
doc: update contrib docs
1 parent 701fb3e commit 28e0bc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_contrib/code-style.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ hyper uses the default configuration of `rustfmt`.
1212

1313
```txt
1414
# Mac or Linux
15-
rustfmt --check --edition 2018 $(git ls-files '*.rs')
15+
rustfmt --check --edition 2021 $(git ls-files '*.rs')
1616
1717
# Powershell
18-
Get-ChildItem . -Filter "*.rs" -Recurse | foreach { rustfmt --check --edition 2018 $_.FullName }
18+
Get-ChildItem . -Filter "*.rs" -Recurse | foreach { rustfmt --check --edition 2021 $_.FullName }
1919
```
2020

2121
> **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:

0 commit comments

Comments
 (0)