rust/lib-hedgewars-engine/src/world.rs
changeset 15759 c929e25a7da2
parent 15758 6c939e6de981
child 15762 84c07aa94b61
--- 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()))
         }
     }