From 4fa7e5cfd9bdd7368a47ecd6f09012818fac5180 Mon Sep 17 00:00:00 2001 From: diquah <57377930+diquah@users.noreply.github.com> Date: Thu, 10 Apr 2025 19:18:21 -0700 Subject: [PATCH] Fix warnings --- crates/typst-layout/src/inline/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/typst-layout/src/inline/mod.rs b/crates/typst-layout/src/inline/mod.rs index 1ffef5154..05b957911 100644 --- a/crates/typst-layout/src/inline/mod.rs +++ b/crates/typst-layout/src/inline/mod.rs @@ -17,7 +17,7 @@ use typst_library::foundations::{Packed, Resolve, Smart, StyleChain}; use typst_library::introspection::{Introspector, Locator, LocatorLink, SplitLocator}; use typst_library::layout::{Abs, AlignElem, Dir, FixedAlignment, Fragment, Size}; use typst_library::model::{ - EnumElem, FirstLineIndent, Linebreaks, ListElem, Microtype, ParElem, ParLine, + EnumElem, FirstLineIndent, Linebreaks, ListElem, ParElem, ParLine, ParLineMarker, TermsElem, }; use typst_library::routines::{Arenas, Pair, RealizationKind, Routines}; @@ -183,13 +183,11 @@ fn configuration( situation: Option, ) -> Config { let justify = base.justify; - let microtype = ParElem::microtype_in(shared); let font_size = TextElem::size_in(shared); let dir = TextElem::dir_in(shared); Config { justify, - microtype, linebreaks: base.linebreaks.unwrap_or_else(|| { if justify { Linebreaks::Optimized @@ -269,8 +267,6 @@ struct ConfigBase { struct Config { /// Whether to justify text. justify: bool, - /// The maximum allowed kerning adjustment for microjustification. - microtype: Microtype, /// How to determine line breaks. linebreaks: Linebreaks, /// The indent the first line of a paragraph should have.