aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src/lib.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-08-15 23:51:13 -0500
committermat <git@matdoes.dev>2023-08-15 23:51:13 -0500
commit8a90a8e109b88c1c70b88f7488a0a8eb5f52d724 (patch)
tree4799da92884dfb3f8745fc86489550260dcab0ca /azalea-physics/src/lib.rs
parent4ed4be529f0ee44120bb9c110418cbb8e3edd22d (diff)
downloadazalea-drasl-8a90a8e109b88c1c70b88f7488a0a8eb5f52d724.tar.xz
fix tests
Diffstat (limited to 'azalea-physics/src/lib.rs')
-rw-r--r--azalea-physics/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-physics/src/lib.rs b/azalea-physics/src/lib.rs
index 9c16caef..6fef7ad1 100644
--- a/azalea-physics/src/lib.rs
+++ b/azalea-physics/src/lib.rs
@@ -377,7 +377,7 @@ mod tests {
let entity_pos = *app.world.get::<Position>(entity).unwrap();
// delta is applied before gravity, so the first tick only sets the delta
assert_eq!(entity_pos.y, 70.);
- let entity_physics = app.world.get::<Physics>(entity).unwrap().clone();
+ let entity_physics = app.world.get::<Physics>(entity).unwrap();
assert!(entity_physics.delta.y < 0.);
}
app.world.run_schedule(FixedUpdate);
@@ -439,7 +439,7 @@ mod tests {
let entity_pos = *app.world.get::<Position>(entity).unwrap();
// delta will change, but it won't move until next tick
assert_eq!(entity_pos.y, 70.);
- let entity_physics = app.world.get::<Physics>(entity).unwrap().clone();
+ let entity_physics = app.world.get::<Physics>(entity).unwrap();
assert!(entity_physics.delta.y < 0.);
}
app.world.run_schedule(FixedUpdate);