From 3e6f49fb2e114c2ee6137731c4e4c6892b3ff41c Mon Sep 17 00:00:00 2001 From: r3d42-git <279915996+r3d42-git@users.noreply.github.com> Date: Thu, 22 Oct 2026 11:27:52 +0200 Subject: [PATCH] LR-EXPORT: simplify preset bit-depth guard Use is_none_or for missing or null bitDepth, preserving the existing preset fallback behavior. This removes the Rust 1.95 clippy::nonminimal_bool warning without a lint suppression. Validation: cargo xtask ci passes all eight gates on the isolated upstream base; capability-dependent skips are recorded in the local report. --- crates/engine/src/cmd/export.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/export.rs b/crates/engine/src/cmd/export.rs index 949c08f1ba..9af0606d9d 100644 --- a/crates/engine/src/cmd/export.rs +++ b/crates/engine/src/cmd/export.rs @@ -38,7 +38,7 @@ impl Session { } // the preset's depth is judged against the format written, known only now (`path`); a // depth the call passes itself is the caller's, and validated as such - if !p.get("bitDepth").is_some_and(|d| !d.is_null()) { + if p.get("bitDepth").is_none_or(|d| d.is_null()) { crate::export::ExportOptions::drop_unfit_depth(&mut out, fallback); } Ok(out)