From 14abff99f6578946ebf2e96c1405acbd220b91c5 Mon Sep 17 00:00:00 2001 From: Olle Lukowski <63189113+Olle-Lukowski@users.noreply.github.com> Date: Wed, 12 Apr 2023 21:27:38 +0200 Subject: [PATCH] Improved AnimationPlugin declaration. (#8361) # Objective Fixes #8347. ## Solution Implemented the suggested change to the `AnimationPlugin` declaration. --- crates/bevy_animation/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index f4fcd3f7ed..22a6462d2b 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -544,7 +544,7 @@ fn update_transitions(player: &mut AnimationPlayer, time: &Time) { /// Adds animation support to an app #[derive(Default)] -pub struct AnimationPlugin {} +pub struct AnimationPlugin; impl Plugin for AnimationPlugin { fn build(&self, app: &mut App) {