From c6bdf077b82b30f8228b56702bd3ee71d92b3910 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sun, 1 Jun 2025 13:31:52 +0100 Subject: refactor: utilise new jid type safety --- filamento/src/logic/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'filamento/src/logic/mod.rs') diff --git a/filamento/src/logic/mod.rs b/filamento/src/logic/mod.rs index 5e05dac..146f3b0 100644 --- a/filamento/src/logic/mod.rs +++ b/filamento/src/logic/mod.rs @@ -1,6 +1,6 @@ use std::{collections::HashMap, sync::Arc}; -use jid::JID; +use jid::{BareJID, JID}; use lampada::{Connected, Logic, error::ReadError}; use stanza::client::Stanza; use tokio::sync::{Mutex, mpsc, oneshot}; @@ -25,7 +25,7 @@ mod process_stanza; #[derive(Clone)] pub struct ClientLogic { client: Client, - bare_jid: JID, + jid: BareJID, db: Db, pending: Pending, update_sender: mpsc::Sender, @@ -80,7 +80,7 @@ impl Pending { impl ClientLogic { pub fn new( client: Client, - bare_jid: JID, + jid: BareJID, db: Db, update_sender: mpsc::Sender, file_store: Fs, @@ -90,7 +90,7 @@ impl ClientLogic { pending: Pending::new(), update_sender, client, - bare_jid, + jid, file_store, } } -- cgit