From b51a9ef2d091dfac4833100e9835471e365168e1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 25 Feb 2025 21:57:49 +0100 Subject: clippy --- world/src/vrm.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'world/src/vrm.rs') diff --git a/world/src/vrm.rs b/world/src/vrm.rs index c408b1d..f014e66 100644 --- a/world/src/vrm.rs +++ b/world/src/vrm.rs @@ -51,11 +51,8 @@ pub fn extract_vrm_data(gltf: &Gltf) -> Result { o.camera_mount = fp.first_person_bone; o.camera_mount_offset = fp.first_person_bone_offset.map(convert_vrm_vec); for ann in fp.mesh_annotations { - match ann.first_person_flag { - FirstPersonFlag::ThirdPersonOnly => { - o.hide_first_person.insert(ann.node); - } - _ => (), + if let FirstPersonFlag::ThirdPersonOnly = ann.first_person_flag { + o.hide_first_person.insert(ann.node); } } } -- cgit v1.2.3-70-g09d2