diff options
author | Pyfisch <pyfisch@gmail.com> | 2018-11-07 20:07:06 +0100 |
---|---|---|
committer | Pyfisch <pyfisch@gmail.com> | 2018-11-07 20:32:22 +0100 |
commit | 694991ad7e74dcbe42544c049d834e4d664b353f (patch) | |
tree | d21fec0b289cc187c2c43a7fa02f804de9a6d333 | |
parent | b93d4b2ac6a24f1d377b4cb3393f79e0e877c642 (diff) | |
download | servo-694991ad7e74dcbe42544c049d834e4d664b353f.tar.gz servo-694991ad7e74dcbe42544c049d834e4d664b353f.zip |
Hint ./mach fmt
-rw-r--r-- | python/servo/testing_commands.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 1a4f24716e1..bd0271765f1 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -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', |