Skip to content

Commit

Permalink
chore: New clippy lint
Browse files Browse the repository at this point in the history
Thanks clippy!
  • Loading branch information
Piturnah committed Sep 10, 2024
1 parent 54fea6f commit 1054fab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,7 @@ fn restore_terminal() {
}

fn main() -> Result<()> {
run(&Clargs::parse()).map_err(|e| {
run(&Clargs::parse()).inspect_err(|_| {
restore_terminal();
e
})
}

0 comments on commit 1054fab

Please sign in to comment.