Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerthox committed Dec 14, 2024
1 parent 656d47a commit 583943c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions reffect/src/render_util/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,7 @@ impl LoadedFont {
if font_select_with_preview(
ui,
label,
self.name
.as_ref()
.map(|name| name.as_str())
.unwrap_or("Inherit"),
self.name.as_deref().unwrap_or("Inherit"),
&mut self.loaded,
) {
self.name = self.loaded.map(|font| font.name_owned());
Expand Down

0 comments on commit 583943c

Please sign in to comment.