Skip to content

Commit 48f8178

Browse files
[autofix.ci] apply automated fixes
1 parent 25eacc0 commit 48f8178

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/common/sharedfontique.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ impl std::fmt::Display for RegisterFontError {
153153
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
154154
match self {
155155
RegisterFontError::EmptyData => write!(f, "Font data is empty"),
156-
RegisterFontError::NoFontsFound => write!(f, "No valid fonts found in the provided data"),
156+
RegisterFontError::NoFontsFound => {
157+
write!(f, "No valid fonts found in the provided data")
158+
}
157159
RegisterFontError::InvalidFontData => write!(f, "Invalid font data"),
158160
}
159161
}
@@ -204,10 +206,8 @@ pub fn register_font_from_memory(
204206

205207
// Set up fallbacks for all scripts
206208
for script in fontique::Script::all_samples().iter().map(|(script, _)| *script) {
207-
collection.append_fallbacks(
208-
fontique::FallbackKey::new(script, None),
209-
family_ids.iter().copied(),
210-
);
209+
collection
210+
.append_fallbacks(fontique::FallbackKey::new(script, None), family_ids.iter().copied());
211211
}
212212

213213
Ok(FontHandle { family_ids })

0 commit comments

Comments
 (0)