Skip to content

Commit

Permalink
refactor: remove redundant closure
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal authored and ku1ik committed Aug 12, 2024
1 parent 89c9576 commit 728b954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fonts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub fn init(font_dirs: &[String], font_family: &str) -> Option<(fontdb::Database

let mut families = font_family
.split(',')
.map(|name| name.trim())
.map(str::trim)
.filter_map(|name| find_font_family(&font_db, name))
.collect::<Vec<_>>();

Expand Down

0 comments on commit 728b954

Please sign in to comment.