mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Remove import order check from test-tidy
Fix leaking file descriptor.
This commit is contained in:
parent
095d446ccd
commit
4a947dd719
2 changed files with 5 additions and 36 deletions
|
@ -305,10 +305,11 @@ class MachCommands(CommandBase):
|
|||
return 0
|
||||
|
||||
def install_rustfmt(self):
|
||||
if self.call_rustup_run(["cargo", "fmt", "--version", "-q"],
|
||||
stderr=open(os.devnull, "w")) != 0:
|
||||
# Rustfmt is not installed. Install:
|
||||
self.call_rustup_run(["rustup", "component", "add", "rustfmt-preview"])
|
||||
with open(os.devnull, "w") as devnull:
|
||||
if self.call_rustup_run(["cargo", "fmt", "--version", "-q"],
|
||||
stderr=devnull) != 0:
|
||||
# Rustfmt is not installed. Install:
|
||||
self.call_rustup_run(["rustup", "component", "add", "rustfmt-preview"])
|
||||
|
||||
@Command('test-tidy',
|
||||
description='Run the source code tidiness check',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue