Skip to content

Commit

Permalink
Minor lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fosskers committed Jun 15, 2020
1 parent 46f1415 commit 0be1792
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
deps.png
pkg/
Cargo.lock
9 changes: 3 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,9 @@ impl fmt::Display for Error {
}

fn main() {
match work() {
Err(e) => {
eprintln!("{}", e);
process::exit(1)
}
Ok(_) => {}
if let Err(e) = work() {
eprintln!("{}", e);
process::exit(1)
}
}

Expand Down

0 comments on commit 0be1792

Please sign in to comment.