diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-01-28 09:02:43 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-01-28 09:02:43 +0200 |
commit | 387f0b7675fba94115ead348c358c7d3e7638e4c (patch) | |
tree | 82483e5dad773cbf90884716e66a47629aa487fa /src/lib.rs | |
parent | fa5765189eef33bed301479410c4a53dc274acf0 (diff) | |
download | subplot-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.rs | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |