chore: Fix clippy warnings in debug binaries
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
8c4b9d2d07
commit
d3d3f27451
@@ -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
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user