]> git.proxmox.com Git - cargo.git/commitdiff
Fix a tidy issue with src/bin/cargo.rs
authorAlex Crichton <alex@alexcrichton.com>
Thu, 6 Nov 2014 16:56:34 +0000 (08:56 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 6 Nov 2014 16:56:34 +0000 (08:56 -0800)
src/bin/cargo.rs

index bf7b35839b3d5168b8be265b6563a443b726c034..28a0addc685ce91b9516d9e3e7bf3434fc5a9825 100644 (file)
@@ -101,8 +101,9 @@ fn execute(flags: Flags, shell: &mut MultiShell) -> CliResult<Option<()>> {
     let (mut args, command) = match flags.arg_command.as_slice() {
         "" | "help" if flags.arg_args.len() == 0 => {
             shell.set_verbose(true);
-            let r = cargo::call_main_without_stdin(execute, shell, USAGE,
-                                                   [os::args()[0].clone(), "-h".to_string()], false);
+            let args = &[os::args()[0].clone(), "-h".to_string()];
+            let r = cargo::call_main_without_stdin(execute, shell, USAGE, args,
+                                                   false);
             cargo::process_executed(r, shell);
             return Ok(None)
         }