Merge pull request #2203 from Messhias/fix/2131-clippy-pdf-collapsible-match

fix(pdf): collapse Shading match for clippy 1.95
This commit is contained in:
BFlat
2026-10-16 02:12:43 +07:00
committed by GitHub
+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(_)