clippy: fold the series filter into an early return

Clippy 1.91 flags the negated three-term conjunction in
series_patches_to_apply; an early return keeps the intent readable
without the lint.
This commit is contained in:
vhaudiquet committed 2026-11-17 10:35:49 +01:00
1 parent 891bacd055
commit 93f1acf484
1 file changed
+4 -3
+4 -3
View File
@@ -1624,9 +1624,10 @@ fn series_patches_to_apply(series_content: &str, single_debian_patch: bool) -> V
.lines()
.map(str::trim)
.filter(|entry| {
!entry.is_empty()
&& !entry.starts_with('#')
&& !(single_debian_patch && is_debian_changes(entry))
if entry.is_empty() || entry.starts_with('#') {
return false;
}
!(single_debian_patch && is_debian_changes(entry))
})
.collect()
}