Skip to content

Commit bd9d5e5

Browse files
committed
Add missing =>
1 parent 9f287c2 commit bd9d5e5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/compiletest/procsrv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fn run(lib_path: ~str,
8383
(2, s) => {
8484
errs = s;
8585
}
86-
_ { fail }
86+
_ => { fail }
8787
};
8888
count -= 1;
8989
};

src/test/bench/shootout-pfib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ fn parse_opts(argv: ~[~str]) -> config {
5151

5252
let opt_args = vec::slice(argv, 1u, vec::len(argv));
5353

54-
5554
alt getopts::getopts(opt_args, opts) {
56-
ok(m) { return {stress: getopts::opt_present(m, ~"stress")} }
57-
err(_) { fail; }
55+
ok(m) => { return {stress: getopts::opt_present(m, ~"stress")} }
56+
err(_) => { fail; }
5857
}
5958
}
6059

0 commit comments

Comments
 (0)