Skip to content

Commit

Permalink
fix names example
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed Jan 24, 2023
1 parent 19a08fb commit 5cf56b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf/examples/names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn walk_outline(r: &impl Resolve, mut node: RcRef<OutlineItem>, name_map: &impl
if let Some(ref dest) = node.dest {
match dest {
Primitive::String(ref s) => {
let name = s.to_string_lossy().unwrap();
let name = s.to_string_lossy();
let page_nr = name_map(&name);
println!("{}dest: {:?} -> page nr. {:?}", indent, name, page_nr);
}
Expand Down

0 comments on commit 5cf56b7

Please sign in to comment.