Skip to content

Commit

Permalink
Merge pull request #57 from triarius/triarius/fix-clippy
Browse files Browse the repository at this point in the history
Fix a clippy lint
  • Loading branch information
triarius authored Feb 12, 2024
2 parents c1347ad + 5f1f754 commit 2e23ff5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/passphrase.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
use rand::{rngs::ThreadRng, Rng};

pub fn new(
rng: &mut ThreadRng,
words: &mut Vec<String>,
num_words: usize,
separator: &str,
) -> String {
pub fn new(rng: &mut ThreadRng, words: &mut [String], num_words: usize, separator: &str) -> String {
if words.len() < num_words {
eprintln!(
"Your dictionary only has {} suitable words, but you asked for {} words.",
Expand Down

0 comments on commit 2e23ff5

Please sign in to comment.