From bea97e1f8b3e20bb5ffd82780eea09c0f4c7d4dc Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Thu, 29 May 2025 21:13:19 +0100 Subject: [PATCH] Remove `#[internal]` annotation for `#[synthesized]` fields --- crates/typst-library/src/model/bibliography.rs | 2 -- crates/typst-library/src/model/cite.rs | 2 -- crates/typst-library/src/model/figure.rs | 1 - 3 files changed, 5 deletions(-) diff --git a/crates/typst-library/src/model/bibliography.rs b/crates/typst-library/src/model/bibliography.rs index 51e3b03b0..fa25a79a4 100644 --- a/crates/typst-library/src/model/bibliography.rs +++ b/crates/typst-library/src/model/bibliography.rs @@ -142,12 +142,10 @@ pub struct BibliographyElem { pub style: Derived, /// The language setting where the bibliography is. - #[internal] #[synthesized] pub lang: Lang, /// The region setting where the bibliography is. - #[internal] #[synthesized] pub region: Option, } diff --git a/crates/typst-library/src/model/cite.rs b/crates/typst-library/src/model/cite.rs index 29497993d..fa03c28b2 100644 --- a/crates/typst-library/src/model/cite.rs +++ b/crates/typst-library/src/model/cite.rs @@ -110,12 +110,10 @@ pub struct CiteElem { pub style: Smart>, /// The text language setting where the citation is. - #[internal] #[synthesized] pub lang: Lang, /// The text region setting where the citation is. - #[internal] #[synthesized] pub region: Option, } diff --git a/crates/typst-library/src/model/figure.rs b/crates/typst-library/src/model/figure.rs index f846f50a2..76ec94db2 100644 --- a/crates/typst-library/src/model/figure.rs +++ b/crates/typst-library/src/model/figure.rs @@ -546,7 +546,6 @@ pub struct FigureCaption { pub counter: Counter, /// The figure's location. - #[internal] #[synthesized] pub figure_location: Location, }