mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
fix(pdf): collapse Shading match for clippy 1.95 (#2131)
Rust 1.95 clippy -D warnings rejects the nested if under TypedInstruction::Shading (collapsible_match). Fold the shading lookup into the match arm guard so the Ubuntu xtask ci gate can pass on the same toolchain Actions pins. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
bflatastic
co-authored by
Cursor
parent
f5eaf75097
commit
fc14c38883
@@ -545,10 +545,8 @@ impl Walker<'_, '_> {
|
||||
self.painted(true);
|
||||
}
|
||||
// Drawn when the interpreter can read the shading: the page's count tells.
|
||||
TypedInstruction::Shading(s) => {
|
||||
if res.get_shading(s.0).is_some() {
|
||||
self.painted(false);
|
||||
}
|
||||
TypedInstruction::Shading(s) if res.get_shading(s.0).is_some() => {
|
||||
self.painted(false);
|
||||
}
|
||||
TypedInstruction::ShowText(_)
|
||||
| TypedInstruction::ShowTexts(_)
|
||||
|
||||
Reference in New Issue
Block a user