This replaces usage of the (missing) `fatal!` macro with `panic!`.
This commit is contained in:
Toby Scrace 2015-11-03 11:46:05 +00:00
parent eacd35984b
commit d9df16bf61

View file

@ -2074,7 +2074,7 @@ tweak the case analysis in `main`:
```rust,ignore ```rust,ignore
match search(&args.arg_data_path, &args.arg_city) { match search(&args.arg_data_path, &args.arg_city) {
Err(CliError::NotFound) if args.flag_quiet => process::exit(1), Err(CliError::NotFound) if args.flag_quiet => process::exit(1),
Err(err) => fatal!("{}", err), Err(err) => panic!("{}", err),
Ok(pops) => for pop in pops { Ok(pops) => for pop in pops {
println!("{}, {}: {:?}", pop.city, pop.country, pop.count); println!("{}, {}: {:?}", pop.city, pop.country, pop.count);
} }