Make SystemChangeTick Clone (#18991)

# Objective

It can be useful to store the `SystemChangeTick` for a given System. I
wanted to copy them but I noticed that it doesn't implement Clone.
This commit is contained in:
Periwink 2025-05-26 11:43:06 -04:00 committed by GitHub
parent 475b5a8557
commit f33074116b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1675,7 +1675,7 @@ unsafe impl<'a> SystemParam for &'a Bundles {
/// Component change ticks that are more recent than `last_run` will be detected by the system.
/// Those can be read by calling [`last_changed`](crate::change_detection::DetectChanges::last_changed)
/// on a [`Mut<T>`](crate::change_detection::Mut) or [`ResMut<T>`](ResMut).
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub struct SystemChangeTick {
last_run: Tick,
this_run: Tick,