From 8df3ffd30786fbfa5297ca647c3155a937d36fc6 Mon Sep 17 00:00:00 2001 From: PerchAnton Date: Thu, 22 Oct 2026 10:45:59 +0300 Subject: [PATCH] fix(engine): simplify displacement map predicate for strict Clippy --- crates/engine/src/filters_ext.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/src/filters_ext.rs b/crates/engine/src/filters_ext.rs index ce6f7c012f..7aa726f8e0 100644 --- a/crates/engine/src/filters_ext.rs +++ b/crates/engine/src/filters_ext.rs @@ -486,7 +486,7 @@ pub(crate) fn map_path(p: &Value) -> Option<&str> { /// Displace's `mapDocument`: an index or a name. Null and a negative index (the dialog's "None") /// name no document. pub(crate) fn map_document(p: &Value) -> Option<&Value> { - p.get("mapDocument").filter(|d| !d.is_null() && !d.as_i64().is_some_and(|i| i < 0)) + p.get("mapDocument").filter(|d| !d.is_null() && d.as_i64().is_none_or(|i| i >= 0)) } /// Displace's map read from a file (flattened, or its `mapLayer`).