File tree Expand file tree Collapse file tree
crates/engine_spx2html/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,16 +158,10 @@ impl<'a> XdvEvents for EngineState<'a> {
158158 // Might we need to end the initialization phase?
159159
160160 if self . in_endable_init ( ) {
161- let end_init = if let Some ( cmd) = tdux_command {
162- match cmd {
163- "emit" | "provideFile" | "asp" | "aep" | "cs" | "ce" | "mfs" | "me" | "dt" => {
164- true
165- }
166- _ => false ,
167- }
168- } else {
169- false
170- } ;
161+ let end_init = matches ! (
162+ tdux_command. unwrap_or( "none" ) ,
163+ "emit" | "provideFile" | "asp" | "aep" | "cs" | "ce" | "mfs" | "me" | "dt"
164+ ) ;
171165
172166 if end_init {
173167 self . state . ensure_initialized ( ) ?;
@@ -539,7 +533,7 @@ impl InitializationState {
539533 }
540534
541535 if let Some ( info) = self . fonts . get_mut ( & bold_italic) {
542- info. family_name = family_name. clone ( ) ;
536+ info. family_name = family_name;
543537 info. family_relation = FamilyRelativeFontId :: BoldItalic ;
544538 }
545539 } else {
You can’t perform that action at this time.
0 commit comments