Use ..Default::default() to make it clearer what we're changing

This commit is contained in:
Gwilym Inzani 2023-12-05 20:50:33 +00:00
parent b1df507fa6
commit 522183b3ab

View file

@ -16,8 +16,8 @@ pub fn load_font(font_data: &[u8], pixels_per_em: f32) -> TokenStream {
let font = fontdue::Font::from_bytes(
font_data,
fontdue::FontSettings {
collection_index: 0,
scale: pixels_per_em,
..Default::default()
},
)
.expect("Invalid font data");