Add missing =>

This commit is contained in:
Eric Holk 2012-08-06 09:55:53 -07:00
parent 9f287c211e
commit bd9d5e50be
2 changed files with 3 additions and 4 deletions

View File

@ -83,7 +83,7 @@ fn run(lib_path: ~str,
(2, s) => {
errs = s;
}
_ { fail }
_ => { fail }
};
count -= 1;
};

View File

@ -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; }
}
}