diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2020-04-20 19:32:24 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2020-04-20 19:32:24 +0200 |
commit | ad2190963e8c6ccece6259212d2143981448535d (patch) | |
tree | c88f2446a7ef2fd6c193c0b25c03ab6257bc9194 /src/json.rs | |
parent | 7162aa803abd69a24f9e85c6681561d97fa79c15 (diff) |
Removed weird temporary variable from state
Diffstat (limited to 'src/json.rs')
-rw-r--r-- | src/json.rs | 2 |
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, |