servo: Merge #3382 - Fix `mach cargo` is missing (from saneyuki:mach)

Source-Repo: https://github.com/servo/servo
Source-Revision: aa935c7b027bf00bf1f6756b0f5e1f4d0866c964
This commit is contained in:
Tetsuharu OHZEKI 2014-09-17 02:33:35 -04:00
Родитель 4399584659
Коммит 12b129555a
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -27,7 +27,7 @@ class MachCommands(CommandBase):
allow_all_args=True)
@CommandArgument('params', default=None, nargs='...',
help="Command-line arguments to be passed through to Cargo")
def run(self, params):
def cargo(self, params):
return subprocess.call(["cargo"] + params,
env=self.build_env())
@ -37,5 +37,5 @@ class MachCommands(CommandBase):
allow_all_args=True)
@CommandArgument('params', default=None, nargs='...',
help="Command-line arguments to be passed through to rustc")
def run(self, params):
def rustc(self, params):
return subprocess.call(["rustc"] + params, env=self.build_env())