Browse Source

cargo clippy

pull/1516/head
o2sh 11 months ago
parent
commit
38a0bcdc13
No known key found for this signature in database
GPG Key ID: D099D76E63AD9E67
  1. 4
      src/info/git/mod.rs

4
src/info/git/mod.rs

@ -292,9 +292,7 @@ fn is_bot_commit(
} }
fn is_bot(author_name: &BString, bot_regex_pattern: Option<&MyRegex>) -> bool { fn is_bot(author_name: &BString, bot_regex_pattern: Option<&MyRegex>) -> bool {
bot_regex_pattern.map_or(false, |regex| { bot_regex_pattern.is_some_and(|regex| regex.0.is_match(author_name.to_str_lossy().as_ref()))
regex.0.is_match(author_name.to_str_lossy().as_ref())
})
} }
#[cfg(test)] #[cfg(test)]

Loading…
Cancel
Save