mirror of
https://github.com/typst/typst
synced 2025-08-07 11:47:53 +08:00
Happy Clippy.
This commit is contained in:
parent
77c2571dbc
commit
df15d4009c
@ -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::<TextElem>() {
|
||||
} else if elem.to_packed::<TextElem>().is_some() {
|
||||
Ok(HtmlElem::new(tag::math::mi)
|
||||
.with_body(Some(elem.clone()))
|
||||
.pack()
|
||||
|
Loading…
x
Reference in New Issue
Block a user