diff options
| author | Beiri22 <beier1@hs-mittweida.de> | 2023-08-25 14:27:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-25 14:27:50 +0200 |
| commit | ea469c2df6378e8ce860217cd100831ae6ee8d9f (patch) | |
| tree | 1c515a45523117e0e371c02ea63f1c0d292944c5 /crates/typst-library/src/math/mod.rs | |
| parent | 94df32a91973ace83f5f628db3daa19725be11e3 (diff) | |
calm down clippy even more (#1997)
Diffstat (limited to 'crates/typst-library/src/math/mod.rs')
| -rw-r--r-- | crates/typst-library/src/math/mod.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/crates/typst-library/src/math/mod.rs b/crates/typst-library/src/math/mod.rs index a2302785..f10850cf 100644 --- a/crates/typst-library/src/math/mod.rs +++ b/crates/typst-library/src/math/mod.rs @@ -249,14 +249,12 @@ impl Layout for EquationElem { // Find a math font. let variant = variant(styles); let world = vt.world; - let Some(font) = families(styles) - .find_map(|family| { - let id = world.book().select(family.as_str(), variant)?; - let font = world.font(id)?; - let _ = font.ttf().tables().math?.constants?; - Some(font) - }) - else { + let Some(font) = families(styles).find_map(|family| { + let id = world.book().select(family.as_str(), variant)?; + let font = world.font(id)?; + let _ = font.ttf().tables().math?.constants?; + Some(font) + }) else { bail!(self.span(), "current font does not support math"); }; |
