diff options
Diffstat (limited to '')
-rw-r--r-- | jid/src/lib.rs (renamed from src/jid.rs) | 9 |
1 files changed, 0 insertions, 9 deletions
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>, |