From 7dc1b1f35d02485b75c0373701dd09cec874ac4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cel=20=F0=9F=8C=B8?= Date: Mon, 24 Feb 2025 09:23:25 +0000 Subject: [PATCH] impl Eq and Hash for JID --- jid/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,