aboutsummaryrefslogtreecommitdiffstats
path: root/jid
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-02-25 20:50:23 +0000
committerLibravatar cel 🌸 <cel@bunny.garden>2025-02-25 20:50:23 +0000
commit76b00cd644768d6a1b66b50b802bb72e2be228ce (patch)
treebd9e5c6a7df6c00fb68692cdb6b39c6912658054 /jid
parentd30131e0fcf7d64a333493bc430baa02fd156f4d (diff)
downloadluz-76b00cd644768d6a1b66b50b802bb72e2be228ce.tar.gz
luz-76b00cd644768d6a1b66b50b802bb72e2be228ce.tar.bz2
luz-76b00cd644768d6a1b66b50b802bb72e2be228ce.zip
implement Clone for error types
Diffstat (limited to 'jid')
-rw-r--r--jid/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/jid/src/lib.rs b/jid/src/lib.rs
index 09b0a7f..8f297c6 100644
--- a/jid/src/lib.rs
+++ b/jid/src/lib.rs
@@ -62,7 +62,7 @@ impl sqlx::Encode<'_, Sqlite> for JID {
}
}
-#[derive(Debug)]
+#[derive(Debug, Clone)]
pub enum JIDError {
NoResourcePart,
ParseError(ParseError),
@@ -79,7 +79,7 @@ impl Display for JIDError {
impl Error for JIDError {}
-#[derive(Debug)]
+#[derive(Debug, Clone)]
pub enum ParseError {
Empty,
Malformed(String),