mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-05-13 05:29:34 +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>>,
|
ctx: Rc<RefCell<PqMlsContext>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, DS, CS, RS> InboxV2<DS, RS, CS>
|
impl<DS, CS, RS> InboxV2<DS, RS, CS>
|
||||||
where
|
where
|
||||||
DS: DeliveryService,
|
DS: DeliveryService,
|
||||||
RS: RegistrationService,
|
RS: RegistrationService,
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
use libchat::{
|
use libchat::{
|
||||||
AddressedEnvelope, ChatError, ChatStorage, ContentData, Context, ConversationIdOwned,
|
AddressedEnvelope, ChatError, ChatStorage, ContentData, Context, ConversationIdOwned,
|
||||||
DeliveryService, Introduction, RegistrationService, StorageConfig,
|
DeliveryService, Introduction, StorageConfig,
|
||||||
};
|
};
|
||||||
|
|
||||||
use logoschat_components::EphemeralRegistry;
|
use logoschat_components::EphemeralRegistry;
|
||||||
|
|||||||
@ -24,6 +24,12 @@ impl EphemeralRegistry {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for EphemeralRegistry {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Debug for EphemeralRegistry {
|
impl Debug for EphemeralRegistry {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
let registry = self.registry.lock().unwrap();
|
let registry = self.registry.lock().unwrap();
|
||||||
@ -52,7 +58,10 @@ impl RegistrationService for EphemeralRegistry {
|
|||||||
type Error = String;
|
type Error = String;
|
||||||
|
|
||||||
fn register(&mut self, identity: &str, key_bundle: Vec<u8>) -> Result<(), Self::Error> {
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -97,6 +97,12 @@ impl LocalBroadcaster {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for LocalBroadcaster {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl DeliveryService for LocalBroadcaster {
|
impl DeliveryService for LocalBroadcaster {
|
||||||
type Error = String;
|
type Error = String;
|
||||||
|
|
||||||
|
|||||||
@ -22,6 +22,12 @@ impl MemStore {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for MemStore {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl ConversationStore for MemStore {
|
impl ConversationStore for MemStore {
|
||||||
fn save_conversation(
|
fn save_conversation(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user