mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Hint ./mach fmt
This commit is contained in:
parent
b93d4b2ac6
commit
694991ad7e
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)
|
tidy_failed = tidy.scan(not all_files, not no_progress, stylo=stylo)
|
||||||
self.install_rustfmt()
|
self.install_rustfmt()
|
||||||
rustfmt_failed = self.call_rustup_run(["cargo", "fmt", "--", "--check"])
|
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
|
return tidy_failed or manifest_dirty or rustfmt_failed
|
||||||
|
|
||||||
@Command('test-webidl',
|
@Command('test-webidl',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue