From d4c2eb7b74407acf1de301173f5e2ded3e542c87 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 18:54:08 +0000 Subject: [PATCH] Fix FBX color 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 62e11b0eb..64e018bb5 100644 --- a/crates/mesh/src/fbx.rs +++ b/crates/mesh/src/fbx.rs @@ -1134,10 +1134,10 @@ impl<'a> Build<'a, '_> { positions.push(original); vertex_colors.push([1.0; 4]); } - if let Some(dst) = vertex_colors.get_mut(position as usize) { - if let [r, g, b, a] = rgba { - *dst = [finite(*r) as f32, finite(*g) as f32, finite(*b) as f32, finite(*a) as f32]; - } + if let Some(dst) = vertex_colors.get_mut(position as usize) + && let [r, g, b, a] = rgba + { + *dst = [finite(*r) as f32, finite(*g) as f32, finite(*b) as f32, finite(*a) as f32]; } color_indices.insert((p, color), position); }