From beebdb56e78c4adf6d8804b4d99a755b310ba9f3 Mon Sep 17 00:00:00 2001 From: Aaron Muir Hamilton Date: Sat, 13 Apr 2024 08:54:03 -0400 Subject: [PATCH] This doesn't need to be Vec. --- src/fontique/backend/android.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fontique/backend/android.rs b/src/fontique/backend/android.rs index 94355f0f..bc1efe58 100644 --- a/src/fontique/backend/android.rs +++ b/src/fontique/backend/android.rs @@ -31,8 +31,8 @@ pub struct SystemFonts { pub name_map: Arc, pub generic_families: Arc, family_map: HashMap, - locale_fallback: Vec<(LanguageIdentifier, FamilyId)>, - script_fallback: Vec<(Script, FamilyId)>, + locale_fallback: Box<[(LanguageIdentifier, FamilyId)]>, + script_fallback: Box<[(Script, FamilyId)]>, } impl SystemFonts { @@ -164,8 +164,8 @@ impl SystemFonts { name_map: Arc::new(name_map), generic_families: Arc::new(generic_families), family_map, - locale_fallback, - script_fallback, + locale_fallback: locale_fallback.into(), + script_fallback: script_fallback.into(), } }