chore: Silence clippy lint

This commit is contained in:
Jonas Platte
2022-09-09 11:51:22 +02:00
committed by Jonas Platte
parent 3a6397fdba
commit dc05c6e2b8
2 changed files with 6 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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.