Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatol Ulrich committed Jan 10, 2022
1 parent a677a7e commit 1cfc492
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const EXIT_CODE_FAILURE: i32 = 1;
const SP_ALIGN: u64 = 8;

fn main() -> Result<()> {
// clippy complains about redundant closure, but in fact
// the function signature isn't 100% compatible so we must wrap it
#[allow(clippy::redundant_closure)]
notmain().map(|code| process::exit(code))
}

Expand Down

0 comments on commit 1cfc492

Please sign in to comment.