refactor: remove duplicate char reference

This commit is contained in:
Sebastian Pravda 2023-01-20 13:06:50 +01:00
parent 9c2d1e18a2
commit 5392b6fd0d
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57

View file

@ -34,10 +34,10 @@ pub fn random_12_char_string() -> String {
/// Exclude O and 0, lowercase letters
fn is_usable_char(c: &char) -> bool {
('1'..='9').contains(&c) ||
('A'..='N').contains(&c) ||
('P'..'Z').contains(&c) ||
['@', '#', '$', '%'].contains(&c)
('1'..='9').contains(c) ||
('A'..='N').contains(c) ||
('P'..'Z').contains(c) ||
['@', '#', '$', '%'].contains(c)
}
pub async fn hash_password(password_plain_text: String) -> Result<String, ServiceError> {