cl-wordle: 0.2.0 -> 0.4.0

This commit is contained in:
Ilan Joselevich 2022-02-15 18:18:03 +02:00
parent a400822701
commit 9e0b3c024f
2 changed files with 3 additions and 18 deletions

View file

@ -2,16 +2,14 @@
rustPlatform.buildRustPackage rec {
pname = "cl-wordle";
version = "0.2.0";
version = "0.4.0";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-M2ljFrfIOyM1Slwsk7ZJ+PhJIVSUvFcFck2Q2e9nOwc=";
sha256 = "sha256-z2XpXgOviBRcberwpxQ4ml1T04k5kMhG7wA0PAYWENg=";
};
cargoSha256 = "sha256-bB6MzpJc8QS2+8GSS8RbSF5QcJyRT8FkmChpf1x2i/E=";
patches = [ ./rust-1-57.diff ];
cargoSha256 = "sha256-C7UMkhgez2CtddftARlwN1TjZ1N26NnZfpRiX1KkMEA=";
meta = with lib; {
description = "Wordle TUI in Rust";

View file

@ -1,13 +0,0 @@
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)?;
}