summaryrefslogtreecommitdiff
path: root/crates/typst-layout/src/math/lr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-layout/src/math/lr.rs')
-rw-r--r--crates/typst-layout/src/math/lr.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/typst-layout/src/math/lr.rs b/crates/typst-layout/src/math/lr.rs
index 01a7f4cc..2f4556fe 100644
--- a/crates/typst-layout/src/math/lr.rs
+++ b/crates/typst-layout/src/math/lr.rs
@@ -1,6 +1,6 @@
use typst_library::diag::SourceResult;
-use typst_library::foundations::{Packed, Smart, StyleChain};
-use typst_library::layout::{Abs, Axis, Length, Rel};
+use typst_library::foundations::{Packed, StyleChain};
+use typst_library::layout::{Abs, Axis, Rel};
use typst_library::math::{EquationElem, LrElem, MidElem};
use unicode_math_class::MathClass;
@@ -22,7 +22,7 @@ pub fn layout_lr(
// Extract implicit LrElem.
if let Some(lr) = body.to_packed::<LrElem>() {
- if lr.size(styles).is_auto() {
+ if lr.size(styles).is_one() {
body = lr.body();
}
}
@@ -128,7 +128,7 @@ fn scale(
styles: StyleChain,
fragment: &mut MathFragment,
relative_to: Abs,
- height: Smart<Rel<Length>>,
+ height: Rel<Abs>,
apply: Option<MathClass>,
) {
if matches!(