chore: Fix clippy warnings in debug binaries

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Abimael Martell
2026-02-13 12:57:49 -08:00
co-authored by Claude Opus 4.6
parent 8c4b9d2d07
commit d3d3f27451
2 changed files with 8 additions and 10 deletions
+1 -3
View File
@@ -56,15 +56,13 @@ fn main() {
if let Some(enc_dict) = enc_dict { if let Some(enc_dict) = enc_dict {
// Check BaseEncoding // Check BaseEncoding
if let Ok(base) = enc_dict.get(b"BaseEncoding") { if let Ok(lopdf::Object::Name(name)) = enc_dict.get(b"BaseEncoding") {
if let lopdf::Object::Name(name) = base {
println!( println!(
" font={}: BaseEncoding={}", " font={}: BaseEncoding={}",
font_name, font_name,
String::from_utf8_lossy(name) String::from_utf8_lossy(name)
); );
} }
}
// Dump Differences // Dump Differences
if let Ok(diff_obj) = enc_dict.get(b"Differences") { if let Ok(diff_obj) = enc_dict.get(b"Differences") {
+2 -2
View File
@@ -80,8 +80,8 @@ fn main() {
println!("===== PAGE {} ({} lines) =====", page, page_lines.len()); println!("===== PAGE {} ({} lines) =====", page, page_lines.len());
println!( println!(
"{:>8} {:>8} {:>8} {:>6} {:>5} {}", "{:>8} {:>8} {:>8} {:>6} {:>5} Text (first 80 chars)",
"Y", "Gap", "GapRatio", "Font", "Bold", "Text (first 80 chars)" "Y", "Gap", "GapRatio", "Font", "Bold"
); );
println!("{}", "-".repeat(120)); println!("{}", "-".repeat(120));