Skip to content

Commit 9384cc9

Browse files
committed
cargo fmt
1 parent f0cf912 commit 9384cc9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

crates/bevy_ecs/src/change_detection.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ mod tests {
251251

252252
// world: 1, system last ran: 0, component changed: 1
253253
// The spawn will be detected since it happened after the system "last ran".
254-
assert_eq!(change_detected_system.run((), &mut world), true);
254+
assert!(change_detected_system.run((), &mut world));
255255

256256
// world: 1 + MAX_CHANGE_AGE
257257
let change_tick = world.change_tick.get_mut();
@@ -261,7 +261,7 @@ mod tests {
261261
// Since we clamp things to `MAX_CHANGE_AGE` for determinism,
262262
// `ComponentTicks::is_changed` will now see `MAX_CHANGE_AGE > MAX_CHANGE_AGE`
263263
// and return `false`.
264-
assert_eq!(change_expired_system.run((), &mut world), false);
264+
assert!(!change_expired_system.run((), &mut world));
265265
}
266266

267267
#[test]
@@ -283,7 +283,7 @@ mod tests {
283283

284284
// Since the world is always ahead, as long as changes can't get older than `u32::MAX` (which we ensure),
285285
// the wrapping difference will always be positive, so wraparound doesn't matter.
286-
assert_eq!(change_detected_system.run((), &mut world), true);
286+
assert!(change_detected_system.run((), &mut world));
287287
}
288288

289289
#[test]

crates/bevy_ecs/src/system/system.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ pub(crate) fn check_system_change_tick(
7474
warn!(
7575
"System '{}' has not run for {} ticks. \
7676
Changes older than {} ticks will not be detected.",
77-
system_name, age, MAX_CHANGE_AGE - 1,
77+
system_name,
78+
age,
79+
MAX_CHANGE_AGE - 1,
7880
);
7981
*last_change_tick = change_tick.wrapping_sub(MAX_CHANGE_AGE);
8082
}

0 commit comments

Comments
 (0)