chore: Run cargo fix --edition
This commit is contained in:
parent
5aa8d54bca
commit
0d43ed61c4
4 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "server"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
|
||||
# We manually specify for better caching in Podman
|
||||
[[bin]]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "wasm"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
|
||||
# We manually specify path for better caching in Podman
|
||||
[lib]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "word_grid"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
authors = ["Joel Therrien"]
|
||||
repository = "https://git.joeltherrien.ca/joel/WordGrid"
|
||||
license = "AGPL-3"
|
||||
|
|
|
@ -485,7 +485,7 @@ impl Game {
|
|||
.get_player_state_mut(¤t_player)
|
||||
.ok_or(Error::InvalidPlayer(current_player.clone()))?;
|
||||
|
||||
if let Player::AI { object, .. } = &mut state.player {
|
||||
match &mut state.player { Player::AI { object, .. } => {
|
||||
let tray = &mut state.tray;
|
||||
|
||||
let best_move = object.find_best_move(tray, &self.board, &mut self.rng);
|
||||
|
@ -537,14 +537,14 @@ impl Game {
|
|||
))
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} _ => {
|
||||
Ok((
|
||||
TurnAdvanceResult::HumanInputRequired {
|
||||
name: self.current_player_name(),
|
||||
},
|
||||
self.get_state(),
|
||||
))
|
||||
}
|
||||
}}
|
||||
}
|
||||
|
||||
pub fn get_remaining_tiles(&self) -> usize {
|
||||
|
|
Loading…
Add table
Reference in a new issue