HU1: keep the integrated PDF condition clippy-clean

Apply the equivalent De Morgan form of the upstream gradient condition so Rust 1.95 clippy with warnings denied can complete. Short-circuit order and output behavior are unchanged.
This commit is contained in:
macadminHU authored and GitHub committed 2026-10-27 18:15:05 +01:00
1 parent 4207debc17
commit e6e8fc126e
1 file changed
+1 -1
+1 -1
View File
@@ -87,7 +87,7 @@ impl Exporter<'_> {
let inks: Vec<Option<Ink>> = g.stops.iter().map(|s| self.stop_ink(s)).collect();
let has_spot = inks.iter().any(|i| matches!(i, Some(Ink::Spot { .. })));
let on_paper = g.stops.iter().any(|s| s.swatch.as_deref() == Some(designcraft_color::swatch::PAPER));
if !has_spot && !overprint && !(on_paper && self.for_print() && !self.rgb_only) {
if !(has_spot || overprint || on_paper && self.for_print() && !self.rgb_only) {
return None;
}
let Some(inks) = inks.into_iter().collect::<Option<Vec<Ink>>>() else {