Remove unnecessary parentheses.

This commit is contained in:
Huon Wilson 2014-01-19 19:21:14 +11:00
parent 3901228811
commit 39713b8295
47 changed files with 90 additions and 98 deletions

View file

@ -119,7 +119,7 @@ pub fn parse_args(args: &[~str]) -> Result<ParseResult, int> {
let mut args = matches.free.clone();
args.shift();
if (args.len() < 1) {
if args.len() < 1 {
usage::general();
return Err(1);
}
@ -154,7 +154,7 @@ pub fn parse_args(args: &[~str]) -> Result<ParseResult, int> {
};
let cmd_opt = args.iter().filter_map( |s| from_str(s.clone())).next();
let command = match(cmd_opt){
let command = match cmd_opt {
None => {
debug!("No legal command. Returning 0");
usage::general();
@ -194,4 +194,3 @@ pub fn parse_args(args: &[~str]) -> Result<ParseResult, int> {
sysroot: supplied_sysroot
})
}

View file

@ -11,7 +11,7 @@
#[bench]
pub fn g() {
let mut x = 0;
while(x < 1000) {
while x < 1000 {
x += 1;
}
}