aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/devenv_commands.py
diff options
context:
space:
mode:
authorPyfisch <pyfisch@gmail.com>2018-10-15 12:14:28 +0200
committerPyfisch <pyfisch@gmail.com>2018-11-06 22:28:29 +0100
commitbf47f90da667e95eaffc8fee36ca8a88e72e276c (patch)
tree005a5010cdd46fac4b547c5307c54e7654a7b3d3 /python/servo/devenv_commands.py
parent6878dbbbeaa59b21a7b3608b6d6a911e88c1e443 (diff)
downloadservo-bf47f90da667e95eaffc8fee36ca8a88e72e276c.tar.gz
servo-bf47f90da667e95eaffc8fee36ca8a88e72e276c.zip
Run rustfmt on test-tidy
Add ./mach fmt command. Mach installs rustfmt if needed.
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r--python/servo/devenv_commands.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py
index 71181220b76..46862754bd1 100644
--- a/python/servo/devenv_commands.py
+++ b/python/servo/devenv_commands.py
@@ -233,19 +233,6 @@ class MachCommands(CommandBase):
with cd(self.context.topdir):
return self.call_rustup_run(["cargo", "fetch"], env=self.build_env())
- @Command('rustfmt',
- description='Format the Rust code using Cargo fmt',
- category='devenv')
- @CommandArgument(
- '--directory', '-d', default=None,
- help='Command-line argument to specify the directory for formatting')
- def rustfmt(self, directory=""):
- if directory == "":
- directory = self.context.topdir
-
- with cd(self.context.topdir):
- return self.call_rustup_run(["cargo", "fmt", "--", directory], env=self.build_env())
-
@Command('ndk-stack',
description='Invoke the ndk-stack tool with the expected symbol paths',
category='devenv')