Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Feb 11, 2023
1 parent d0fce1a commit 566d71f
Show file tree
Hide file tree
Showing 3 changed files with 859 additions and 510 deletions.
2 changes: 1 addition & 1 deletion src/glyphnames.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4695,6 +4695,6 @@ pub fn name_to_unicode(name: &str) -> Option<u16> {
("zuhiragana", 0x305a),
("zukatakana", 0x30ba)
];
let result = names.binary_search_by_key(&name, |&(name,_code)| &name);
let result = names.binary_search_by_key(&name, |&(name,_code)| name);
result.ok().map(|indx| names[indx].1)
}
Loading

0 comments on commit 566d71f

Please sign in to comment.