Add missing =>
This commit is contained in:
parent
9f287c211e
commit
bd9d5e50be
2 changed files with 3 additions and 4 deletions
|
|
@ -83,7 +83,7 @@ fn run(lib_path: ~str,
|
|||
(2, s) => {
|
||||
errs = s;
|
||||
}
|
||||
_ { fail }
|
||||
_ => { fail }
|
||||
};
|
||||
count -= 1;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -51,10 +51,9 @@ fn parse_opts(argv: ~[~str]) -> config {
|
|||
|
||||
let opt_args = vec::slice(argv, 1u, vec::len(argv));
|
||||
|
||||
|
||||
alt getopts::getopts(opt_args, opts) {
|
||||
ok(m) { return {stress: getopts::opt_present(m, ~"stress")} }
|
||||
err(_) { fail; }
|
||||
ok(m) => { return {stress: getopts::opt_present(m, ~"stress")} }
|
||||
err(_) => { fail; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue