Appease clippy

This commit is contained in:
Jazz Turner-Baggs 2026-04-28 09:50:23 -07:00
parent 94a2904c0e
commit 4737ae0f06
No known key found for this signature in database
5 changed files with 24 additions and 3 deletions

View File

@ -87,7 +87,7 @@ pub struct InboxV2<DS, RS, CS> {
ctx: Rc<RefCell<PqMlsContext>>,
}
impl<'a, DS, CS, RS> InboxV2<DS, RS, CS>
impl<DS, CS, RS> InboxV2<DS, RS, CS>
where
DS: DeliveryService,
RS: RegistrationService,

View File

@ -1,6 +1,6 @@
use libchat::{
AddressedEnvelope, ChatError, ChatStorage, ContentData, Context, ConversationIdOwned,
DeliveryService, Introduction, RegistrationService, StorageConfig,
DeliveryService, Introduction, StorageConfig,
};
use logoschat_components::EphemeralRegistry;

View File

@ -24,6 +24,12 @@ impl EphemeralRegistry {
}
}
impl Default for EphemeralRegistry {
fn default() -> Self {
Self::new()
}
}
impl Debug for EphemeralRegistry {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let registry = self.registry.lock().unwrap();
@ -52,7 +58,10 @@ impl RegistrationService for EphemeralRegistry {
type Error = String;
fn register(&mut self, identity: &str, key_bundle: Vec<u8>) -> Result<(), Self::Error> {
self.registry.lock().unwrap().insert(identity.to_string(), key_bundle);
self.registry
.lock()
.unwrap()
.insert(identity.to_string(), key_bundle);
Ok(())
}

View File

@ -97,6 +97,12 @@ impl LocalBroadcaster {
}
}
impl Default for LocalBroadcaster {
fn default() -> Self {
Self::new()
}
}
impl DeliveryService for LocalBroadcaster {
type Error = String;

View File

@ -22,6 +22,12 @@ impl MemStore {
}
}
impl Default for MemStore {
fn default() -> Self {
Self::new()
}
}
impl ConversationStore for MemStore {
fn save_conversation(
&mut self,