mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-12 05:12:39 +00:00
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:
1 parent
4207debc17
commit
e6e8fc126e
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user