From df15d4009c32fb7e2ebffa4276e306e5fbc8dda8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20F=C3=A4rber?= <01mf02@gmail.com> Date: Mon, 20 Jan 2025 11:00:12 +0100 Subject: [PATCH] Happy Clippy. --- crates/typst-library/src/math/equation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()