--- a/rust/lib-hedgewars-engine/src/world.rs Wed Nov 11 22:41:31 2020 +0300
+++ b/rust/lib-hedgewars-engine/src/world.rs Thu Nov 12 00:24:58 2020 +0300
@@ -134,14 +134,10 @@
if let Some(ref mut state) = self.game_state {
let id = state.physics.new_gear().unwrap();
let fp_position = FPPoint::new(position.x.into(), position.y.into());
- state.physics.add_gear_data(
- id,
- &PositionData(fp_position)
- );
- state.physics.add_gear_data(
- id,
- &VelocityData(FPPoint::zero())
- )
+ state.physics.add_gear_data(id, &PositionData(fp_position));
+ state
+ .physics
+ .add_gear_data(id, &VelocityData(FPPoint::zero()))
}
}