fix some nightly clippy lints

Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
June Clementine Strawberry 2025-03-11 23:05:56 -04:00
parent 0877f29439
commit 1d1ccec532
6 changed files with 14 additions and 7 deletions

View file

@ -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.")));
}