mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-19 14:19:06 -04:00
chore: Silence clippy lint
This commit is contained in:
committed by
Jonas Platte
parent
3a6397fdba
commit
dc05c6e2b8
@@ -586,7 +586,9 @@ impl Common {
|
||||
if let Some(mutex) =
|
||||
self.client.inner.members_request_locks.get(self.inner.room_id()).map(|m| m.clone())
|
||||
{
|
||||
mutex.lock().await;
|
||||
// If a member request is already going on, await the release of
|
||||
// the lock.
|
||||
_ = mutex.lock().await;
|
||||
|
||||
Ok(None)
|
||||
} else {
|
||||
|
||||
@@ -325,9 +325,9 @@ impl Joined {
|
||||
if let Some(mutex) =
|
||||
self.client.inner.group_session_locks.get(self.inner.room_id()).map(|m| m.clone())
|
||||
{
|
||||
// If a group session share request is already going on,
|
||||
// await the release of the lock.
|
||||
mutex.lock().await;
|
||||
// If a group session share request is already going on, await the
|
||||
// release of the lock.
|
||||
_ = mutex.lock().await;
|
||||
} else {
|
||||
// Otherwise create a new lock and share the group
|
||||
// session.
|
||||
|
||||
Reference in New Issue
Block a user