summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-04-05 19:05:07 +0300
committerLars Wirzenius <liw@liw.fi>2023-04-08 16:56:30 +0300
commit014c3ff3d957a3012278e4f11a81404c873738e9 (patch)
treeb404abf40781f0a413346b9042b05759cac8bcf1 /src
parent602f5c524fe60d8a9400aec1a39dda8cb208823e (diff)
downloadsubplot-014c3ff3d957a3012278e4f11a81404c873738e9.tar.gz
chore(src/error.rs): drop unused error variants
Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r--src/error.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/error.rs b/src/error.rs
index 9409fcf..a322bd6 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -140,18 +140,6 @@ pub enum SubplotError {
#[error("document lacks specified template support")]
TemplateSupportNotPresent,
- /// Pandoc AST is not JSON
- ///
- /// Subplot acts as a Pandoc filter, and as part of that Pandoc
- /// constructs an _abstract syntax tree_ from the input document,
- /// and feeds it to the filter as JSON. However, when Subplot was
- /// parsing the AST, it wasn't JSON.
- ///
- /// This probably means there's something wrong with Pandoc, it's
- /// Rust bindings, or Subplot.
- #[error("Pandoc produce AST not in JSON")]
- NotJson,
-
/// First scenario is before first heading
///
/// Subplot scenarios are group by the input document's structure.
@@ -285,10 +273,6 @@ pub enum SubplotError {
#[error("Error when writing to {0}")]
WriteFile(PathBuf, #[source] std::io::Error),
- /// Error executing Pandoc.
- #[error("Pandoc failed")]
- Pandoc(#[source] pandoc::PandocError),
-
/// Error parsing markdown into HTML.
#[error(transparent)]
ParseMarkdown(#[from] HtmlError),
@@ -300,10 +284,6 @@ pub enum SubplotError {
#[error("Failed to compile regular expression: {0:?}")]
Regex(String, #[source] regex::Error),
- /// Error parsing the Pandoc abstract syntax tree as JSON.
- #[error("Failed to parse document AST as JSON")]
- AstJson(#[source] serde_json::Error),
-
/// Error parsing YAML metadata for document.
#[error("Failed to parse YAML metadata")]
Metadata(#[source] serde_yaml::Error),