rusty-diceware

Commandline diceware, with or without dice, written in Rustlang.
git clone https://kaka.farm/~git/rusty-diceware
Log | Files | Refs | README | LICENSE

commit e59fbb54454d53b0c169759f9f649d15242c72e9
parent 3b3649c7c38e680335af1f3f190bbdd309701b3f
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Wed,  6 Nov 2024 00:57:23 +0200

Fix return type.

Diffstat:
Msrc/main.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs @@ -78,7 +78,7 @@ fn print_words( println!(); } -fn read_single_word<T: std::iter::Iterator<Item = Result<u8, std::io::Error>>, U: std::fmt::Display + ?Sized>(bytes_iter: &mut std::iter::Peekable<T>, wordlist: &Vec<&str>) -> Result<String, Error> { +fn read_single_word<T: std::iter::Iterator<Item = Result<u8, std::io::Error>>, U: std::fmt::Display + ?Sized>(bytes_iter: &mut std::iter::Peekable<T>, wordlist: &Vec<&str>) -> Option<String> { let die_cast_per_word = die_cast_per_word(wordlist.len()); let mut word_index = 0;