Skip to content

Commit

Permalink
chore: thank you clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Sep 17, 2024
1 parent 249fce8 commit 9dff643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/passwordtests/min_digits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub struct MinDigits {

impl PasswordTest for MinDigits {
fn test(&self, password: &str) -> Result<(), String> {
if password.chars().filter(|f| f.is_digit(10)).count() < self.min_digits {
if password.chars().filter(|f| f.is_ascii_digit()).count() < self.min_digits {
Err(format!(
"Password must contain at least {} digits",
self.min_digits
Expand Down

0 comments on commit 9dff643

Please sign in to comment.