From 7f22e4af6135c740109b392e764f5439ac0ea8df Mon Sep 17 00:00:00 2001 From: Nuutti Kotivuori Date: Wed, 28 Jun 2023 16:15:32 +0000 Subject: [PATCH] Get rid of clone_into as we know our time is Copy --- crates/bevy_time/src/fixed.rs | 5 +++-- crates/bevy_time/src/virt.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/bevy_time/src/fixed.rs b/crates/bevy_time/src/fixed.rs index 57ed2f267f7f73..11e9bef5dc939e 100644 --- a/crates/bevy_time/src/fixed.rs +++ b/crates/bevy_time/src/fixed.rs @@ -168,9 +168,10 @@ pub fn run_fixed_update_schedule( // Run the schedule until we run out of accumulated time let _ = world.try_schedule_scope(FixedUpdate, |world, schedule| { while world.resource_mut::>().expend() { - world.resource::>().as_generic().clone_into(world.resource_mut::