Skip to content

Commit

Permalink
feat: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
casperstorm committed Mar 6, 2024
1 parent 70d1c60 commit cbf10a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::default;
use std::fs::{self, File};
use std::io::BufReader;
use std::path::PathBuf;
Expand Down Expand Up @@ -89,7 +88,7 @@ impl Font {
let Font { family: default_family, size: default_size } = Font::default();

Ok(Font {
family: family.unwrap_or_else(|| default_family),
family: family.unwrap_or(default_family),
size: size.unwrap_or(default_size),
})
}
Expand Down

0 comments on commit cbf10a7

Please sign in to comment.