mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
enable unused_async lint
This also caused a "new" `unnecessary_wraps` lint to fire too, so that got fixed too.
This commit is contained in:
parent
4419e855ae
commit
f855bd09d1
3 changed files with 11 additions and 10 deletions
|
|
@ -599,12 +599,12 @@ async fn join_room_by_id_helper(
|
|||
.collect::<Vec<_>>()
|
||||
{
|
||||
if user.server_name() == services().globals.server_name()
|
||||
&& services()
|
||||
.rooms
|
||||
.state_accessor
|
||||
.user_can_invite(room_id, &user, sender_user, &state_lock)
|
||||
.await
|
||||
.unwrap_or(false)
|
||||
&& services().rooms.state_accessor.user_can_invite(
|
||||
room_id,
|
||||
&user,
|
||||
sender_user,
|
||||
&state_lock,
|
||||
)
|
||||
{
|
||||
auth_user = Some(user);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue