From d3d3f2745163e7a78351dfd241ad25b38bc0c962 Mon Sep 17 00:00:00 2001 From: Abimael Martell Date: Fri, 13 Feb 2026 12:57:49 -0800 Subject: [PATCH] chore: Fix clippy warnings in debug binaries Co-Authored-By: Claude Opus 4.6 --- src/bin/debug_ligatures.rs | 14 ++++++-------- src/bin/debug_ygaps.rs | 4 ++-- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/bin/debug_ligatures.rs b/src/bin/debug_ligatures.rs index 914a7fc..a19ce6c 100644 --- a/src/bin/debug_ligatures.rs +++ b/src/bin/debug_ligatures.rs @@ -56,14 +56,12 @@ fn main() { if let Some(enc_dict) = enc_dict { // Check BaseEncoding - if let Ok(base) = enc_dict.get(b"BaseEncoding") { - if let lopdf::Object::Name(name) = base { - println!( - " font={}: BaseEncoding={}", - font_name, - String::from_utf8_lossy(name) - ); - } + if let Ok(lopdf::Object::Name(name)) = enc_dict.get(b"BaseEncoding") { + println!( + " font={}: BaseEncoding={}", + font_name, + String::from_utf8_lossy(name) + ); } // Dump Differences diff --git a/src/bin/debug_ygaps.rs b/src/bin/debug_ygaps.rs index a874de0..d4c65a3 100644 --- a/src/bin/debug_ygaps.rs +++ b/src/bin/debug_ygaps.rs @@ -80,8 +80,8 @@ fn main() { println!("===== PAGE {} ({} lines) =====", page, page_lines.len()); println!( - "{:>8} {:>8} {:>8} {:>6} {:>5} {}", - "Y", "Gap", "GapRatio", "Font", "Bold", "Text (first 80 chars)" + "{:>8} {:>8} {:>8} {:>6} {:>5} Text (first 80 chars)", + "Y", "Gap", "GapRatio", "Font", "Bold" ); println!("{}", "-".repeat(120));