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.
This commit is contained in:
r3d42-git committed 2026-10-23 10:48:39 +02:00
1 parent 23e181283c
commit 3e6f49fb2e
1 file changed
+1 -1
+1 -1
View File
@@ -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)