Skip to content

Commit 38a0bcd

Browse files
committed
cargo clippy
1 parent 6a6c9fa commit 38a0bcd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/info/git/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,7 @@ fn is_bot_commit(
292292
}
293293

294294
fn is_bot(author_name: &BString, bot_regex_pattern: Option<&MyRegex>) -> bool {
295-
bot_regex_pattern.map_or(false, |regex| {
296-
regex.0.is_match(author_name.to_str_lossy().as_ref())
297-
})
295+
bot_regex_pattern.is_some_and(|regex| regex.0.is_match(author_name.to_str_lossy().as_ref()))
298296
}
299297

300298
#[cfg(test)]

0 commit comments

Comments
 (0)