Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
odecay committed Jun 6, 2024
1 parent 4ec6658 commit 2da33f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fighter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2da33f3

Please sign in to comment.