Switch alts to use arrows
This commit is contained in:
@@ -108,8 +108,8 @@ fn main(args: ~[~str]) {
|
||||
}
|
||||
|
||||
let config = alt config::parse_config(args) {
|
||||
result::ok(config) { config }
|
||||
result::err(err) {
|
||||
result::ok(config) => config,
|
||||
result::err(err) => {
|
||||
io::println(fmt!{"error: %s", err});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user