Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Samyak2 committed Nov 25, 2023
1 parent e302c28 commit 1718019
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/textgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ pub trait WordSelector {

/// Returns a [`Vec`] containing `num_words` words.
fn new_words(&mut self, num_words: usize) -> Result<Vec<String>, io::Error> {
(0..num_words)
.map(|_| self.new_word())
.collect()
(0..num_words).map(|_| self.new_word()).collect()
}
}

Expand Down

0 comments on commit 1718019

Please sign in to comment.