aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-02-24 09:23:25 +0000
committerLibravatar cel 🌸 <cel@bunny.garden>2025-02-24 09:23:25 +0000
commit7dc1b1f35d02485b75c0373701dd09cec874ac4d (patch)
tree2fbb601aecfb494396a8080d87b3902d3063e2d6
parent66e37108cd61750aeaaa6d521742c1fb494b1394 (diff)
downloadluz-7dc1b1f35d02485b75c0373701dd09cec874ac4d.tar.gz
luz-7dc1b1f35d02485b75c0373701dd09cec874ac4d.tar.bz2
luz-7dc1b1f35d02485b75c0373701dd09cec874ac4d.zip
impl Eq and Hash for JID
-rw-r--r--jid/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/jid/src/lib.rs b/jid/src/lib.rs
index 5b648d9..543d1ba 100644
--- a/jid/src/lib.rs
+++ b/jid/src/lib.rs
@@ -2,7 +2,7 @@ use std::{error::Error, fmt::Display, str::FromStr};
use sqlx::Sqlite;
-#[derive(PartialEq, Debug, Clone, sqlx::Type, sqlx::Encode)]
+#[derive(PartialEq, Debug, Clone, sqlx::Type, sqlx::Encode, Eq, Hash)]
pub struct JID {
// TODO: validate localpart (length, char]
pub localpart: Option<String>,