diff options
Diffstat (limited to '')
-rw-r--r-- | jid/Cargo.toml | 6 | ||||
-rw-r--r-- | jid/src/lib.rs (renamed from src/jid.rs) | 9 |
2 files changed, 6 insertions, 9 deletions
diff --git a/jid/Cargo.toml b/jid/Cargo.toml new file mode 100644 index 0000000..15049c9 --- /dev/null +++ b/jid/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "jid" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/src/jid.rs b/jid/src/lib.rs index 233227a..ff1d82b 100644 --- a/src/jid.rs +++ b/jid/src/lib.rs @@ -19,15 +19,6 @@ pub enum ParseError { Malformed(String), } -impl From<ParseError> for peanuts::Error { - fn from(e: ParseError) -> Self { - match e { - ParseError::Empty => peanuts::Error::DeserializeError("".to_string()), - ParseError::Malformed(e) => peanuts::Error::DeserializeError(e), - } - } -} - impl JID { pub fn new( localpart: Option<String>, |