Skip to content

Commit 609a557

Browse files
committed
remove redundant closure
1 parent ef77631 commit 609a557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotters/src/style/font/ab_glyph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn register_font(
5454
let font = FontRef::try_from_slice(bytes).map_err(|_| InvalidFont { _priv: () })?;
5555
let mut lock = FONTS.write().unwrap();
5656
lock.entry(name.to_string())
57-
.or_insert_with(|| FontMap::new())
57+
.or_insert_with(FontMap::new)
5858
.insert(style, font);
5959
Ok(())
6060
}

0 commit comments

Comments
 (0)