diff options
Diffstat (limited to 'src/librust/rust.rs')
| -rw-r--r-- | src/librust/rust.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librust/rust.rs b/src/librust/rust.rs index 670ece11dbd..adf73a7e7f0 100644 --- a/src/librust/rust.rs +++ b/src/librust/rust.rs @@ -118,7 +118,7 @@ static COMMANDS: &'static [Command<'static>] = &[ ]; fn rustc_help() { - rustc::usage(copy os::args()[0]) + rustc::usage(os::args()[0].clone()) } fn find_cmd(command_string: &str) -> Option<Command> { @@ -148,7 +148,7 @@ fn cmd_help(args: &[~str]) -> ValidUsage { } match args { - [ref command_string] => print_usage(copy *command_string), + [ref command_string] => print_usage((*command_string).clone()), _ => Invalid } } |
