Skip to content

Commit

Permalink
no need for .as_str()
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk authored Jan 6, 2024
1 parent 53fa725 commit a63540a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/epaint/src/text/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl FontImpl {
fn ignore_character(&self, chr: char) -> bool {
use crate::text::FontDefinitions;

if !FontDefinitions::builtin_font_names().contains(&self.name.as_str()) {
if !FontDefinitions::builtin_font_names().contains(&self.name) {
return false;
}

Expand Down

0 comments on commit a63540a

Please sign in to comment.