mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #22141 - pyfisch:add-note-fmt, r=SimonSapin
Hint ./mach fmt Just thought that a note how to fix if rustfmt fails would be nice. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22141) <!-- Reviewable:end -->
This commit is contained in:
commit
b1fd6237d1
1 changed files with 2 additions and 0 deletions
|
@ -331,6 +331,8 @@ class MachCommands(CommandBase):
|
|||
tidy_failed = tidy.scan(not all_files, not no_progress, stylo=stylo)
|
||||
self.install_rustfmt()
|
||||
rustfmt_failed = self.call_rustup_run(["cargo", "fmt", "--", "--check"])
|
||||
if rustfmt_failed:
|
||||
print("Run `./mach fmt` to fix the formatting")
|
||||
return tidy_failed or manifest_dirty or rustfmt_failed
|
||||
|
||||
@Command('test-webidl',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue