Improved AnimationPlugin declaration. (#8361)

# Objective

Fixes #8347.

## Solution

Implemented the suggested change to the `AnimationPlugin` declaration.
This commit is contained in:
Olle Lukowski 2023-04-12 21:27:38 +02:00 committed by GitHub
parent 55e9ab7c92
commit 14abff99f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {