diff --git a/crates/typst-library/src/math/mod.rs b/crates/typst-library/src/math/mod.rs index 79e047cdd..3d39e2fd2 100644 --- a/crates/typst-library/src/math/mod.rs +++ b/crates/typst-library/src/math/mod.rs @@ -28,7 +28,6 @@ use typst_utils::singleton; use unicode_math_class::MathClass; use crate::foundations::{elem, Content, Module, NativeElement, Scope}; -use crate::introspection::Locatable; use crate::layout::{Em, HElem}; use crate::text::TextElem; @@ -111,7 +110,7 @@ pub fn module() -> Module { pub trait Mathy {} /// A math alignment point: `&`, `&&`. -#[elem(title = "Alignment Point", Mathy, Locatable)] +#[elem(title = "Alignment Point", Mathy)] pub struct AlignPointElem {} impl AlignPointElem { @@ -138,7 +137,7 @@ impl AlignPointElem { /// /// $x loves y and y loves 5$ /// ``` -#[elem(Mathy, Locatable)] +#[elem(Mathy)] pub struct ClassElem { /// The class to apply to the content. #[required] diff --git a/crates/typst-library/src/math/root.rs b/crates/typst-library/src/math/root.rs index 15ef8c55d..ad111700b 100644 --- a/crates/typst-library/src/math/root.rs +++ b/crates/typst-library/src/math/root.rs @@ -1,7 +1,6 @@ use typst_syntax::Span; use crate::foundations::{elem, func, Content, NativeElement}; -use crate::introspection::Locatable; use crate::math::Mathy; /// A square root. @@ -23,7 +22,7 @@ pub fn sqrt( /// ```example /// $ root(3, x) $ /// ``` -#[elem(Mathy, Locatable)] +#[elem(Mathy)] pub struct RootElem { /// Which root of the radicand to take. #[positional]