Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ctsrc committed Oct 25, 2023
1 parent b1b53e2 commit f14a71b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ fn main() -> io::Result<()> {

let width = format!("{num_words}").len();

for i in 0..num_words {
for (i, item) in word_idx.iter_mut().enumerate().take(num_words) {
eprint!("Word {:>w$} / {}. ", i + 1, num_words, w = width);
word_idx[i] = read_dice(num_dice);
*item = read_dice(num_dice);
}

for i in 0..num_words {
Expand Down

0 comments on commit f14a71b

Please sign in to comment.