From ec67f1b80613044bb517c3483e41b59e67b31b4f Mon Sep 17 00:00:00 2001 From: Quentin de Quelen Date: Thu, 12 Nov 2026 20:01:27 +0100 Subject: [PATCH] tools: drop a redundant #[must_use] that clippy 1.100 rejects `run` returns `ExitCode`, which is itself `#[must_use]`. Clippy in Rust 1.100 reports the attribute as `double_must_use`, and CI runs clippy with `-D warnings` on the current stable toolchain. Co-Authored-By: Claude Fable 5.2 --- crates/zerodb-tools/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/zerodb-tools/src/lib.rs b/crates/zerodb-tools/src/lib.rs index 3bfb388..e480026 100644 --- a/crates/zerodb-tools/src/lib.rs +++ b/crates/zerodb-tools/src/lib.rs @@ -62,7 +62,6 @@ const DEFAULT_MAP_SIZE: u64 = 256 << 20; /// Parse `argv` (excluding the program name) and run the selected subcommand. /// Returns the process exit code: `0` success, `1` = `check` found violations, /// `2` = usage/other error. -#[must_use] pub fn run(args: &[String]) -> ExitCode { match dispatch(args) { Ok(code) => code,