Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade committed Jan 27, 2024
1 parent 1bb4a1f commit 162ef39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/motus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub fn random_password<R: Rng>(
(false, false) => vec![10],
};

let dist_set = WeightedIndex::new(&weights).expect("weights should be valid");
let dist_set = WeightedIndex::new(weights).expect("weights should be valid");
let mut password = String::with_capacity(characters as usize);

for _ in 0..characters {
Expand Down

0 comments on commit 162ef39

Please sign in to comment.