From 1f82c5f7c1b0452898e530ae9e5058719d6222ba Mon Sep 17 00:00:00 2001 From: lee-orr Date: Sat, 7 Jan 2023 00:48:40 -0500 Subject: [PATCH] clippy --- src/game/board/tile.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/game/board/tile.rs b/src/game/board/tile.rs index b7eb637..0bd13ca 100644 --- a/src/game/board/tile.rs +++ b/src/game/board/tile.rs @@ -89,11 +89,7 @@ impl Tile { TileType::Farm => 4, TileType::City => 6, }; - let road_cost = if self.contents == TileContents::Road { - 1 - } else { - 0 - }; + let road_cost = usize::from(self.contents == TileContents::Road); type_cost + road_cost }