crypto: Fix some clippy warnings.
This commit is contained in:
parent
eeb6a811c0
commit
db553b2040
2 changed files with 3 additions and 2 deletions
|
@ -969,7 +969,7 @@ impl OlmMachine {
|
|||
panic!("Session is already shared");
|
||||
}
|
||||
|
||||
// TODO don't mark the session as shared automatically only, when all
|
||||
// TODO don't mark the session as shared automatically, only when all
|
||||
// the requests are done, failure to send these requests will likely end
|
||||
// up in wedged sessions. We'll need to store the requests and let the
|
||||
// caller mark them as sent using an UUID.
|
||||
|
@ -986,7 +986,6 @@ impl OlmMachine {
|
|||
.await?
|
||||
.devices()
|
||||
{
|
||||
// TODO abort if the device isn't verified
|
||||
devices.push(device.clone());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,6 +62,7 @@ impl SessionStore {
|
|||
|
||||
/// Get all the sessions that belong to the given sender key.
|
||||
pub fn get(&self, sender_key: &str) -> Option<Arc<Mutex<Vec<Session>>>> {
|
||||
#[allow(clippy::map_clone)]
|
||||
self.entries.get(sender_key).map(|s| s.clone())
|
||||
}
|
||||
|
||||
|
@ -75,6 +76,7 @@ impl SessionStore {
|
|||
#[derive(Debug, Default, Clone)]
|
||||
/// In-memory store that holds inbound group sessions.
|
||||
pub struct GroupSessionStore {
|
||||
#[allow(clippy::type_complexity)]
|
||||
entries: Arc<DashMap<RoomId, HashMap<String, HashMap<String, InboundGroupSession>>>>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue