mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-01 10:56:23 +01:00
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:
1 parent
23e181283c
commit
3e6f49fb2e
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user