From f4ef2c7b79847c8b327f72d24251e74dd78fb1ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Mon, 9 Dec 2024 19:45:07 +0300 Subject: [PATCH] refactor(clippy): apply clippy suggestions --- git-cliff-core/src/repo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-cliff-core/src/repo.rs b/git-cliff-core/src/repo.rs index eb9ad0b143..869addbc6c 100644 --- a/git-cliff-core/src/repo.rs +++ b/git-cliff-core/src/repo.rs @@ -356,7 +356,7 @@ impl Repository { .iter() .flatten() .filter(|tag_name| { - pattern.as_ref().map_or(true, |pat| pat.is_match(tag_name)) + pattern.as_ref().is_none_or(|pat| pat.is_match(tag_name)) }) .map(String::from) {