Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sthiele committed May 14, 2020
1 parent f7393ac commit e018bb1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/fz-parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ struct Opt {
file: PathBuf,
}

fn main() -> Result<()> {
fn main() {
if let Err(err) = run() {
error!("Error: {:?}", err);
std::process::exit(1);
}
}
fn run() -> Result<()> {
stderrlog::new()
.module(module_path!())
.verbosity(2)
Expand Down

0 comments on commit e018bb1

Please sign in to comment.