diff --git a/src/bin/game/cli.rs b/src/bin/game/cli.rs index c3c30eb..9072152 100644 --- a/src/bin/game/cli.rs +++ b/src/bin/game/cli.rs @@ -71,7 +71,11 @@ fn main() -> anyhow::Result<()> { } } if response.won() { - println!("You win! You took {} guesses. {:?}", game.step() - 1, game.solution()); + println!( + "You win! You took {} guesses. {:?}", + game.step() - 1, + game.solution() + ); } else { println!("You lose! The solution was {:?}.", game.solution()); } diff --git a/src/game/mod.rs b/src/game/mod.rs index ae7b222..f40107c 100644 --- a/src/game/mod.rs +++ b/src/game/mod.rs @@ -60,7 +60,7 @@ impl<'wl, WL: WordList> Game<'wl, WL> { solution, wordlist: wlist, finished: false, - responses: Vec::new() + responses: Vec::new(), }; Ok(game)