diff --git a/crates/typst-library/src/math/equation.rs b/crates/typst-library/src/math/equation.rs index 0aac1238e..7cef535bb 100644 --- a/crates/typst-library/src/math/equation.rs +++ b/crates/typst-library/src/math/equation.rs @@ -175,7 +175,7 @@ fn bla(elem: &Content, engine: &mut Engine, styles: StyleChain) -> SourceResult< .with_body(Some(Content::sequence(c?))) .pack() .spanned(elem.span())) - } else if let Some(_) = elem.to_packed::() { + } else if elem.to_packed::().is_some() { Ok(HtmlElem::new(tag::math::mi) .with_body(Some(elem.clone())) .pack()