File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -345,16 +345,18 @@ list][lint_list].
345
345
346
346
### Running rustfmt
347
347
348
- [ Rustfmt] ( https://github.com/rust-lang/rustfmt ) is a tool for formatting Rust code according
349
- to style guidelines. Your code has to be formatted by ` rustfmt ` before a PR can be merged.
348
+ [ Rustfmt] ( https://github.com/rust-lang/rustfmt ) is a tool for formatting Rust
349
+ code according to style guidelines. Your code has to be formatted by ` rustfmt `
350
+ before a PR can be merged. Clippy uses nightly ` rustfmt ` in the CI.
350
351
351
352
It can be installed via ` rustup ` :
352
353
353
354
``` bash
354
- rustup component add rustfmt
355
+ rustup component add rustfmt --toolchain=nightly
355
356
```
356
357
357
- Use ` cargo fmt --all ` to format the whole codebase.
358
+ Use ` ./util/dev fmt ` to format the whole codebase. Make sure that ` rustfmt ` is
359
+ installed for the nightly toolchain.
358
360
359
361
### Debugging
360
362
@@ -371,7 +373,7 @@ Before submitting your PR make sure you followed all of the basic requirements:
371
373
- [ ] ` cargo test ` passes locally
372
374
- [ ] Executed ` util/dev update_lints `
373
375
- [ ] Added lint documentation
374
- - [ ] Run ` cargo fmt`
376
+ - [ ] Run ` ./util/dev fmt`
375
377
376
378
### Cheatsheet
377
379
You can’t perform that action at this time.
0 commit comments