From 1cfc49220f8a8dd2cb928c6f7b5f9996ec560add Mon Sep 17 00:00:00 2001 From: Anatol Ulrich Date: Mon, 10 Jan 2022 18:48:46 +0100 Subject: [PATCH] clippy --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 8bd7536..a1cbceb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)) }