aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5d80297..3143032 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -3,11 +3,13 @@ use std::iter::Peekable;
pub type RepairResult = Result<RepairOk, RepairErr>;
+#[derive(Debug)]
pub enum RepairOk {
Valid,
Repaired,
}
+#[derive(Debug)]
pub enum RepairErr {
Invalid(SyntaxError),
IoErr(std::io::Error),
@@ -25,6 +27,7 @@ impl From<SyntaxError> for RepairErr {
}
}
+#[derive(Debug)]
pub enum SyntaxError {
UnexpectedEof,
InvalidValue,