From 522183b3abea222c6cb71c6b1dbc3ff11bdb8bb3 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Tue, 5 Dec 2023 20:50:33 +0000 Subject: [PATCH] Use ..Default::default() to make it clearer what we're changing --- agb-image-converter/src/font_loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb-image-converter/src/font_loader.rs b/agb-image-converter/src/font_loader.rs index 2e59c83f..d8f8177c 100644 --- a/agb-image-converter/src/font_loader.rs +++ b/agb-image-converter/src/font_loader.rs @@ -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");