Merge pull request #160187 from Kranzes/wordle
cl-wordle: 0.2.0 -> 0.4.0
This commit is contained in:
commit
aed30ec627
|
@ -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";
|
||||
|
|
|
@ -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)?;
|
||||
}
|
Loading…
Reference in a new issue