Skip to content

Commit 7191948

Browse files
committed
clippy
1 parent 773976d commit 7191948

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ In the `client` directory, run `basic-http-server .` in `dist/` and open `http:/
1616
# Notes
1717

1818
- For random, use https://github.com/not-fl3/quad-rand
19+
- boardgamers-mono
20+
- https://github.com/boardgamers/boardgamers-mono/blob/683f4d473586ffe359ad7e58f7bf08d95c96d821/.gitpod.yml#L12-L18

client/src/client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ pub fn try_click(game: &Game, state: &State, player_index: usize) -> StateUpdate
144144
let (x, y) = mouse_position();
145145

146146
let pos = Position::from_coordinate(pixel_to_coordinate(x, y));
147-
if game.map.tiles.get(&pos).is_none() {
147+
if !game.map.tiles.contains_key(&pos) {
148148
return StateUpdate::None;
149149
}
150150

0 commit comments

Comments
 (0)