summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/introspection/metadata.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/introspection/metadata.rs')
-rw-r--r--crates/typst-library/src/introspection/metadata.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/crates/typst-library/src/introspection/metadata.rs b/crates/typst-library/src/introspection/metadata.rs
index 06000174..8ad74b96 100644
--- a/crates/typst-library/src/introspection/metadata.rs
+++ b/crates/typst-library/src/introspection/metadata.rs
@@ -1,6 +1,4 @@
-use crate::diag::SourceResult;
-use crate::engine::Engine;
-use crate::foundations::{elem, Content, Packed, Show, StyleChain, Value};
+use crate::foundations::{elem, Value};
use crate::introspection::Locatable;
/// Exposes a value to the query system without producing visible content.
@@ -24,15 +22,9 @@ use crate::introspection::Locatable;
/// query(<note>).first().value
/// }
/// ```
-#[elem(Show, Locatable)]
+#[elem(Locatable)]
pub struct MetadataElem {
/// The value to embed into the document.
#[required]
pub value: Value,
}
-
-impl Show for Packed<MetadataElem> {
- fn show(&self, _: &mut Engine, _styles: StyleChain) -> SourceResult<Content> {
- Ok(Content::empty())
- }
-}