fix some nightly clippy lints
Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
parent
0877f29439
commit
1d1ccec532
6 changed files with 14 additions and 7 deletions
|
@ -109,7 +109,7 @@ pub(crate) async fn get_register_available_route(
|
|||
if !info.is_user_match(&user_id) {
|
||||
return Err!(Request(Exclusive("Username is not in an appservice namespace.")));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
if services.appservice.is_exclusive_user_id(&user_id).await {
|
||||
return Err!(Request(Exclusive("Username is reserved by an appservice.")));
|
||||
|
@ -159,7 +159,7 @@ pub(crate) async fn register_route(
|
|||
| (None, _) => {
|
||||
info!(%is_guest, "Rejecting registration attempt as registration is disabled");
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
return Err!(Request(Forbidden("Registration has been disabled.")));
|
||||
}
|
||||
|
|
|
@ -254,7 +254,7 @@ async fn allowed_to_send_state_event(
|
|||
"Room server ACL event is invalid: {e}"
|
||||
))));
|
||||
},
|
||||
};
|
||||
}
|
||||
},
|
||||
| StateEventType::RoomEncryption =>
|
||||
// Forbid m.room.encryption if encryption is disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue