Skip to content

Commit 4609aea

Browse files
committed
engine_spx2html: fix clippy complaints
1 parent 86b767d commit 4609aea

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

  • crates/engine_spx2html/src

crates/engine_spx2html/src/lib.rs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)