From bf47f90da667e95eaffc8fee36ca8a88e72e276c Mon Sep 17 00:00:00 2001 From: Pyfisch Date: Mon, 15 Oct 2018 12:14:28 +0200 Subject: Run rustfmt on test-tidy Add ./mach fmt command. Mach installs rustfmt if needed. --- python/servo/devenv_commands.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'python/servo/devenv_commands.py') 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') -- cgit v1.2.3