diff options
author | 2024-12-04 18:18:37 +0000 | |
---|---|---|
committer | 2024-12-04 18:18:37 +0000 | |
commit | 1b91ff690488b65b552c90bd5392b9a300c8c981 (patch) | |
tree | 9c290f69b26eba0393d7bbc05ba29c28ea74a26e /jid | |
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/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>, |