From 218ebc3b8f5024a0813f8378b83d91dbb9aa7db2 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Tue, 21 Dec 2021 21:47:48 +0100 Subject: cargo fmt --- planetwars-rules/src/serializer.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'planetwars-rules/src/serializer.rs') diff --git a/planetwars-rules/src/serializer.rs b/planetwars-rules/src/serializer.rs index 380433e..7eb2e01 100644 --- a/planetwars-rules/src/serializer.rs +++ b/planetwars-rules/src/serializer.rs @@ -47,8 +47,7 @@ impl<'a> Serializer<'a> { /// rotated based on the number offset for this serializer. fn player_num(&self, player_id: usize) -> usize { let num_players = self.state.players.len(); - let rotated_id = - (player_id + num_players - self.player_num_offset) % num_players; + let rotated_id = (player_id + num_players - self.player_num_offset) % num_players; // protocol player ids start at 1 return rotated_id + 1; } -- cgit v1.2.3