mirror of
https://github.com/typst/typst
synced 2025-08-10 05:07:55 +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?)))
|
.with_body(Some(Content::sequence(c?)))
|
||||||
.pack()
|
.pack()
|
||||||
.spanned(elem.span()))
|
.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)
|
Ok(HtmlElem::new(tag::math::mi)
|
||||||
.with_body(Some(elem.clone()))
|
.with_body(Some(elem.clone()))
|
||||||
.pack()
|
.pack()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user