diff options
author | 2024-12-04 18:18:37 +0000 | |
---|---|---|
committer | 2024-12-04 18:18:37 +0000 | |
commit | 1b91ff690488b65b552c90bd5392b9a300c8c981 (patch) | |
tree | 9c290f69b26eba0393d7bbc05ba29c28ea74a26e /jid/src/lib.rs | |
parent | 03764f8cedb3f0a55a61be0f0a59faaa6357a83a (diff) | |
download | luz-1b91ff690488b65b552c90bd5392b9a300c8c981.tar.gz luz-1b91ff690488b65b552c90bd5392b9a300c8c981.tar.bz2 luz-1b91ff690488b65b552c90bd5392b9a300c8c981.zip |
use cargo workspace
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>, |