diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-20 21:03:57 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-20 21:03:57 +0900 |
| commit | 236332f9bfd9cb0688815142237f299939b2d80a (patch) | |
| tree | 63af7169467235daa444d1a2e913264f7e057498 /src | |
| parent | 4fffacaeed6b35cb75132df4629a26183d752492 (diff) | |
| download | reparojson-236332f9bfd9cb0688815142237f299939b2d80a.tar.gz reparojson-236332f9bfd9cb0688815142237f299939b2d80a.tar.zst reparojson-236332f9bfd9cb0688815142237f299939b2d80a.zip | |
feat: add parsing tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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, |
