basic clippy fixes

This commit is contained in:
Henry Schimke
2023-10-28 10:57:42 -05:00
parent 88a4083799
commit 4c9ec95d00
6 changed files with 10 additions and 10 deletions

View File

@@ -67,7 +67,7 @@ pub fn parse(result: &RXingResult) -> Option<ParsedClientResult> {
*/
pub fn isBasicallyValidEmailAddress(email: &str, regex: &Regex) -> bool {
let email_exists = !email.is_empty();
let email_has_at = matches!(email.find('@'), Some(_));
let email_has_at = email.find('@').is_some();
let email_alphamatcher = if let Some(mtch) = regex.find(email) {
mtch.start() == 0 && mtch.end() == email.len()
} else {