cl-wordle: 0.1.2 -> 0.2.0
This commit is contained in:
parent
c0217caf80
commit
582c36f563
|
@ -2,14 +2,14 @@
|
|||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cl-wordle";
|
||||
version = "0.1.2";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchCrate {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-mcPC2Lj+Vsytfl3+ghYn74QRfM6U4dQLUybtCqkjKlk=";
|
||||
sha256 = "sha256-M2ljFrfIOyM1Slwsk7ZJ+PhJIVSUvFcFck2Q2e9nOwc=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-3Ef8gLFWIAYpKdPixvILvDee5Gezh68hc9TR5+zRX0I=";
|
||||
cargoSha256 = "sha256-bB6MzpJc8QS2+8GSS8RbSF5QcJyRT8FkmChpf1x2i/E=";
|
||||
|
||||
patches = [ ./rust-1-57.diff ];
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
diff --git a/src/bin/wordle/game.rs b/src/bin/wordle/game.rs
|
||||
index 8500732..6f26e2a 100644
|
||||
--- a/src/bin/wordle/game.rs
|
||||
+++ b/src/bin/wordle/game.rs
|
||||
@@ -235,7 +235,7 @@ impl Display for GameShare {
|
||||
score = self.score
|
||||
)?;
|
||||
for m in &self.matches {
|
||||
- write!(f, "\n{m}")?;
|
||||
+ write!(f, "\n{}", m)?;
|
||||
diff --git a/src/state.rs b/src/state.rs
|
||||
index 5fac0a3..41cbde4 100644
|
||||
--- a/src/state.rs
|
||||
+++ b/src/state.rs
|
||||
@@ -74,7 +74,7 @@ impl State {
|
||||
'X'
|
||||
};
|
||||
|
||||
- write!(w, "{score}/6",)?;
|
||||
+ write!(w, "{:?}/6", score)?;
|
||||
for Guess(_, m) in self.guesses() {
|
||||
write!(w, "\n{}", m)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue