mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-05-12 04:59:27 +00:00
Appease clippy
This commit is contained in:
parent
94a2904c0e
commit
4737ae0f06
@ -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,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
use libchat::{
|
||||
AddressedEnvelope, ChatError, ChatStorage, ContentData, Context, ConversationIdOwned,
|
||||
DeliveryService, Introduction, RegistrationService, StorageConfig,
|
||||
DeliveryService, Introduction, StorageConfig,
|
||||
};
|
||||
|
||||
use logoschat_components::EphemeralRegistry;
|
||||
|
||||
@ -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(())
|
||||
}
|
||||
|
||||
|
||||
@ -97,6 +97,12 @@ impl LocalBroadcaster {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for LocalBroadcaster {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl DeliveryService for LocalBroadcaster {
|
||||
type Error = String;
|
||||
|
||||
|
||||
@ -22,6 +22,12 @@ impl MemStore {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for MemStore {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl ConversationStore for MemStore {
|
||||
fn save_conversation(
|
||||
&mut self,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user