From b51a9ef2d091dfac4833100e9835471e365168e1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 25 Feb 2025 21:57:49 +0100 Subject: clippy --- world/src/animation.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'world/src/animation.rs') diff --git a/world/src/animation.rs b/world/src/animation.rs index ee6028e..54ce388 100644 --- a/world/src/animation.rs +++ b/world/src/animation.rs @@ -30,8 +30,8 @@ use weareshared::{ store::ResourceStore, }; -pub fn import_animation<'a>( - a: Animation<'a>, +pub fn import_animation( + a: Animation<'_>, store: &ResourceStore, transform: Affine3A, joint_index_to_ibm: &BTreeMap, @@ -62,8 +62,7 @@ pub fn import_animation<'a>( .into_f32() .map(Quat::from_array) .map(|q| rot.mul_quat(q)) - .map(|q| q.to_array()) - .flatten() + .flat_map(|q| q.to_array()) .collect(), ReadOutputs::Scales(iter) => iter .flat_map(|[x, y, z]| (t.matrix3 * vec3a(x, y, z)).to_array()) -- cgit v1.2.3-70-g09d2