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 {
|
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
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user