summaryrefslogtreecommitdiff
path: root/src/json.rs
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2020-04-20 19:32:24 +0200
committerJustin Wernick <justin@worthe-it.co.za>2020-04-20 19:32:24 +0200
commitad2190963e8c6ccece6259212d2143981448535d (patch)
treec88f2446a7ef2fd6c193c0b25c03ab6257bc9194 /src/json.rs
parent7162aa803abd69a24f9e85c6681561d97fa79c15 (diff)
Removed weird temporary variable from state
Diffstat (limited to 'src/json.rs')
-rw-r--r--src/json.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/json.rs b/src/json.rs
index 6cdc48f..d610c0f 100644
--- a/src/json.rs
+++ b/src/json.rs
@@ -147,7 +147,6 @@ impl JsonPlayer {
fn to_player(&self) -> Result<Player> {
Ok(Player {
position: self.position.to_position(),
- next_position: self.position.to_position(),
speed: self.speed,
boost_remaining: self.boost_counter,
oils: self
@@ -172,7 +171,6 @@ impl JsonOpponent {
fn to_player(&self) -> Player {
Player {
position: self.position.to_position(),
- next_position: self.position.to_position(),
speed: self.speed,
boost_remaining: 0,
oils: 0,