diff options
author | legendofmiracles <legendofmiracles@protonmail.com> | 2022-02-07 21:56:33 -0600 |
---|---|---|
committer | legendofmiracles <legendofmiracles@protonmail.com> | 2022-02-07 21:56:33 -0600 |
commit | 582c36f56384560b3d62dce36d3ead51389072c9 (patch) | |
tree | ed91923dbcde43420e7db8136b88fbb26631b491 /pkgs/games/cl-wordle | |
parent | c0217caf80718e770cb1ec2fc1f9c4bc4c159158 (diff) |
cl-wordle: 0.1.2 -> 0.2.0
Diffstat (limited to 'pkgs/games/cl-wordle')
-rw-r--r-- | pkgs/games/cl-wordle/default.nix | 6 | ||||
-rw-r--r-- | pkgs/games/cl-wordle/rust-1-57.diff | 24 |
2 files changed, 15 insertions, 15 deletions
diff --git a/pkgs/games/cl-wordle/default.nix b/pkgs/games/cl-wordle/default.nix index e80dacc6470e..6426c058c377 100644 --- a/pkgs/games/cl-wordle/default.nix +++ b/pkgs/games/cl-wordle/default.nix @@ -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 ]; diff --git a/pkgs/games/cl-wordle/rust-1-57.diff b/pkgs/games/cl-wordle/rust-1-57.diff index 32b95bdaae97..b4c5721d8509 100644 --- a/pkgs/games/cl-wordle/rust-1-57.diff +++ b/pkgs/games/cl-wordle/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(()) - } |