mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Enable unused_async clippy lint
This commit is contained in:
1 parent
fd519ff7f1
commit
d095a4fd3b
20 files changed
+60
-64
No files matched your search
@@ -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")));
|
||||
|
||||
Reference in new issue
Block a user