From 2da33f3999f9f76532d4f9a6044a6497e09edc54 Mon Sep 17 00:00:00 2001 From: otis Date: Thu, 6 Jun 2024 00:41:08 -0400 Subject: [PATCH] clippy fixes --- src/fighter.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fighter.rs b/src/fighter.rs index c353469..6afd511 100644 --- a/src/fighter.rs +++ b/src/fighter.rs @@ -224,7 +224,7 @@ pub fn attachment_system( //Sync animation if attached.sync_animation { animation.current_frame = parent_animation.current_frame; - animation.current_animation = parent_animation.current_animation.clone(); + animation.current_animation.clone_from(&parent_animation.current_animation); animation.timer = parent_animation.timer.clone(); animation.played_once = parent_animation.played_once; } diff --git a/src/main.rs b/src/main.rs index 6795549..773bcf6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -105,7 +105,7 @@ fn main() { ..default() }; if let Some(asset_folder) = &engine_config.asset_dir { - asset_plugin.asset_folder = asset_folder.clone(); + asset_plugin.asset_folder.clone_from(asset_folder); } builder = builder.set(asset_plugin);