Derive Eq, PartialEq for Tick (#9020)
# Objective - Remove need to call `.get()` on two ticks to compare them for equality. ## Solution - Derive `Eq` and `PartialEq`. --- ## Changelog > `Tick` now implements `Eq` and `PartialEq`
This commit is contained in:
parent
9478432cb9
commit
ca3068a1fc
@ -645,7 +645,7 @@ impl Components {
|
||||
|
||||
/// A value that tracks when a system ran relative to other systems.
|
||||
/// This is used to power change detection.
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub struct Tick {
|
||||
tick: u32,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user