summaryrefslogtreecommitdiff
path: root/crates/typst-macros/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-04-02 16:16:44 +0200
committerGitHub <noreply@github.com>2024-04-02 14:16:44 +0000
commitb3615ccd493c4791c3c7565fc7417cba50e8fd71 (patch)
tree264c711ead8cf76439816b1457429a157e614067 /crates/typst-macros/src
parentc4001662b686b0d52e99aa0b72a5b82af6f862fd (diff)
A few CI and crate config changes (#3852)
Diffstat (limited to 'crates/typst-macros/src')
-rw-r--r--crates/typst-macros/src/category.rs1
-rw-r--r--crates/typst-macros/src/lib.rs2
-rw-r--r--crates/typst-macros/src/util.rs1
3 files changed, 3 insertions, 1 deletions
diff --git a/crates/typst-macros/src/category.rs b/crates/typst-macros/src/category.rs
index ac8c813d..26ec879c 100644
--- a/crates/typst-macros/src/category.rs
+++ b/crates/typst-macros/src/category.rs
@@ -33,6 +33,7 @@ pub fn category(_: TokenStream, item: syn::Item) -> Result<TokenStream> {
}
/// Parse a bare `pub static CATEGORY: Category;` item.
+#[allow(dead_code)]
pub struct BareStatic {
pub attrs: Vec<Attribute>,
pub vis: Visibility,
diff --git a/crates/typst-macros/src/lib.rs b/crates/typst-macros/src/lib.rs
index 35c48b4a..58d96386 100644
--- a/crates/typst-macros/src/lib.rs
+++ b/crates/typst-macros/src/lib.rs
@@ -136,7 +136,7 @@ pub fn ty(stream: BoundaryStream, item: BoundaryStream) -> BoundaryStream {
///
/// This implements `NativeElement` for the given type.
///
-/// ```
+/// ```ignore
/// /// A section heading.
/// #[elem(Show, Count)]
/// struct HeadingElem {
diff --git a/crates/typst-macros/src/util.rs b/crates/typst-macros/src/util.rs
index bfe22285..b6acc7d8 100644
--- a/crates/typst-macros/src/util.rs
+++ b/crates/typst-macros/src/util.rs
@@ -232,6 +232,7 @@ impl Parse for BlockWithReturn {
}
/// Parse a bare `type Name;` item.
+#[allow(dead_code)]
pub struct BareType {
pub attrs: Vec<Attribute>,
pub type_token: Token![type],