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/rules.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'planetwars-rules/src/rules.rs') diff --git a/planetwars-rules/src/rules.rs b/planetwars-rules/src/rules.rs index 7c13e58..587098f 100644 --- a/planetwars-rules/src/rules.rs +++ b/planetwars-rules/src/rules.rs @@ -50,8 +50,7 @@ pub struct Dispatch { impl PwState { pub fn dispatch(&mut self, dispatch: &Dispatch) { - let distance = self.planets[dispatch.origin] - .distance(&self.planets[dispatch.target]); + let distance = self.planets[dispatch.origin].distance(&self.planets[dispatch.target]); let origin = &mut self.planets[dispatch.origin]; origin.fleets[0].ship_count -= dispatch.ship_count; -- cgit v1.2.3