switch to shatter

This commit is contained in:
William Casarin
2023-07-05 16:40:40 -07:00
parent a10bd4e4cb
commit 898ccfb132
5 changed files with 15 additions and 270 deletions

View File

@@ -1,9 +1,9 @@
use crate::parser;
use shatter::parser;
#[derive(Eq, PartialEq, Debug)]
pub enum Error {
Nostr(enostr::Error),
Parse(parser::Error),
Shatter(parser::Error),
Generic(String),
}
@@ -15,7 +15,7 @@ impl From<String> for Error {
impl From<parser::Error> for Error {
fn from(s: parser::Error) -> Self {
Error::Parse(s)
Error::Shatter(s)
}
}