summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-01-28 09:02:43 +0200
committerLars Wirzenius <liw@liw.fi>2023-01-28 09:02:43 +0200
commit387f0b7675fba94115ead348c358c7d3e7638e4c (patch)
tree82483e5dad773cbf90884716e66a47629aa487fa /src/lib.rs
parentfa5765189eef33bed301479410c4a53dc274acf0 (diff)
downloadsubplot-387f0b7675fba94115ead348c358c7d3e7638e4c.tar.gz
refactor: move YamlMetadata to src/metadata.rs
YamlMetadata was in src/ast.rs, because originally it was only used to parse metadata out of Markdown. Markdown parsing is now in its own module, leaving ast.rs to only contain YamlMetadata. In this situation, it seems tidy to have both kinds of metadata in the same module, and to drop the now-empty ast.rs module. Sponsored-by: author
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 747b375..1ae64d4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -37,7 +37,7 @@ mod policy;
pub use policy::get_basedir_from;
mod metadata;
-pub use metadata::Metadata;
+pub use metadata::{Metadata, YamlMetadata};
mod doc;
pub mod md;
@@ -72,6 +72,3 @@ pub use templatespec::TemplateSpec;
mod codegen;
pub use codegen::generate_test_program;
-
-mod ast;
-pub use ast::YamlMetadata;