Skip to content

Commit

Permalink
This doesn't need to be Vec.
Browse files Browse the repository at this point in the history
  • Loading branch information
xorgy committed Apr 13, 2024
1 parent ed5afbb commit beebdb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fontique/backend/android.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ pub struct SystemFonts {
pub name_map: Arc<FamilyNameMap>,
pub generic_families: Arc<GenericFamilyMap>,
family_map: HashMap<FamilyId, FamilyInfo>,
locale_fallback: Vec<(LanguageIdentifier, FamilyId)>,
script_fallback: Vec<(Script, FamilyId)>,
locale_fallback: Box<[(LanguageIdentifier, FamilyId)]>,
script_fallback: Box<[(Script, FamilyId)]>,
}

impl SystemFonts {
Expand Down Expand Up @@ -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(),
}
}

Expand Down

0 comments on commit beebdb5

Please sign in to comment.