summaryrefslogtreecommitdiff
path: root/src/error.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/error.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/error.rs')
-rw-r--r--src/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index a729bf0..0ac2abf 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -308,7 +308,7 @@ pub enum SubplotError {
/// Abstract syntax tree error.
#[error(transparent)]
- Ast(#[from] crate::ast::Error),
+ Ast(#[from] crate::metadata::Error),
/// UTF8 conversion error.
#[error("failed to parse UTF8 in file {0}")]