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:
Fabio William Conceição
2026-10-16 02:01:49 +07:00
committed by bflatastic
co-authored by Cursor
parent f5eaf75097
commit fc14c38883
+2 -4
View File
@@ -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(_)