VectorCraft: An open-source, vector art tool written by scratch in pure Rust
fix(pdf): collapse Shading match for clippy 1.95 (#2131)
Fabio William Conceiçãofc14c38883dd
diff --git a/crates/pdf/src/import_scan.rs b/crates/pdf/src/import_scan.rsindex 00f86e1a3..65124d8e0 100644--- a/crates/pdf/src/import_scan.rs+++ b/crates/pdf/src/import_scan.rs@@ -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(_)