From c36e7fc6b3ebca98ffa8c95cf0955b9e228dac3d Mon Sep 17 00:00:00 2001 From: cscherrNT Date: Fri, 22 Mar 2024 13:55:51 +0000 Subject: [PATCH] automatic cargo CI changes --- src/bin/game/cli.rs | 6 +++++- src/game/mod.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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)