File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments