Skip to content

Commit 6af9eea

Browse files
committed
Fix clippy warnings
1 parent dc8ec80 commit 6af9eea

File tree

1 file changed

+3
-2
lines changed
  • crates/bevy_animation/src

1 file changed

+3
-2
lines changed

crates/bevy_animation/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ pub fn animation_player(
368368
});
369369
}
370370

371+
#[allow(clippy::too_many_arguments)]
371372
fn run_animation_player(
372373
root: Entity,
373374
mut player: Mut<AnimationPlayer>,
@@ -452,15 +453,15 @@ fn apply_animation(
452453
if animation.path_cache.len() != animation_clip.paths.len() {
453454
animation.path_cache = vec![Vec::new(); animation_clip.paths.len()];
454455
}
455-
if !verify_no_ancestor_player(maybe_parent, &parents) {
456+
if !verify_no_ancestor_player(maybe_parent, parents) {
456457
warn!("Animation player on {:?} has a conflicting animation player on an ancestor. Cannot safely animate.", root);
457458
return;
458459
}
459460

460461
for (path, bone_id) in &animation_clip.paths {
461462
let cached_path = &mut animation.path_cache[*bone_id];
462463
let curves = animation_clip.get_curves(*bone_id).unwrap();
463-
let Some(target) = find_bone(root, path, &children, &names, cached_path) else { continue };
464+
let Some(target) = find_bone(root, path, children, names, cached_path) else { continue };
464465
// SAFETY: The verify_no_ancestor_player check above ensures that two animation players cannot alias
465466
// any of their descendant Transforms.
466467
//

0 commit comments

Comments
 (0)