Enable unused_async clippy lint

This commit is contained in:
dasha_uwu authored and Jason Volk committed 2026-01-13 07:42:43 +00:00
1 parent fd519ff7f1
commit d095a4fd3b
20 files changed
+60 -64

No files matched your search

+1 -2
View File
@@ -266,7 +266,6 @@ pub(crate) async fn register_route(
let skip_auth = if !services
.globals
.get_registration_tokens()
.await
.is_empty()
&& !is_guest
{
@@ -425,7 +424,7 @@ pub(crate) async fn check_registration_token_validity(
State(services): State<crate::State>,
body: Ruma<check_registration_token_validity::v1::Request>,
) -> Result<check_registration_token_validity::v1::Response> {
let tokens = services.globals.get_registration_tokens().await;
let tokens = services.globals.get_registration_tokens();
if tokens.is_empty() {
return Err!(Request(Forbidden("Server does not allow token registration")));