From ce5f671c221231d000dcdcf5351068de5b45eb1e Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 18:54:08 +0000 Subject: [PATCH] Fix strict FBX geometry clippy warning --- crates/mesh/src/fbx.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/mesh/src/fbx.rs b/crates/mesh/src/fbx.rs index a2e97f59c..eb468abc9 100644 --- a/crates/mesh/src/fbx.rs +++ b/crates/mesh/src/fbx.rs @@ -1110,10 +1110,10 @@ impl<'a> Build<'a, '_> { ("LayerElementMaterial", &["Materials"][..]), ("LayerElementColor", &["Colors", "ColorIndex"][..]), ] { - if let Some(layer) = geom.children_named(element).min_by_key(|e| e.props.first().and_then(Prop::as_i64) != Some(0)) { - if names.iter().filter_map(|n| layer.child(n)).any(|r| !valid(r, false)) { - return Err(malformed(KIND, "mesh array contains a non-numeric or non-finite value")); - } + if let Some(layer) = geom.children_named(element).min_by_key(|e| e.props.first().and_then(Prop::as_i64) != Some(0)) + && names.iter().filter_map(|n| layer.child(n)).any(|r| !valid(r, false)) + { + return Err(malformed(KIND, "mesh array contains a non-numeric or non-finite value")); } } }