Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
paxbun committed Aug 5, 2023
1 parent 42d2725 commit 628da8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndk/src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ impl FontMatcher {
text: &[u16],
run_length_out: Option<&mut u32>,
) -> Font {
if text.len() == 0 {
if text.is_empty() {
panic!("text is empty");
}
unsafe {
Expand Down

0 comments on commit 628da8a

Please sign in to comment.