Enable unused_async clippy lint

This commit is contained in:
dasha_uwu
2026-01-10 09:08:48 +05:00
committed by Jason Volk
parent fd519ff7f1
commit d095a4fd3b
20 changed files with 60 additions and 64 deletions

View File

@@ -300,13 +300,13 @@ pub fn generate_refresh_token() -> String {
}
#[implement(super::Service)]
pub async fn add_to_device_event(
pub fn add_to_device_event(
&self,
sender: &UserId,
target_user_id: &UserId,
target_device_id: &DeviceId,
event_type: &str,
content: serde_json::Value,
content: &serde_json::Value,
) {
let count = self.services.globals.next_count();

View File

@@ -381,11 +381,13 @@ impl Service {
}
#[cfg(not(feature = "ldap"))]
#[allow(clippy::unused_async)]
pub async fn search_ldap(&self, _user_id: &UserId) -> Result<Vec<(String, bool)>> {
Err!(FeatureDisabled("ldap"))
}
#[cfg(not(feature = "ldap"))]
#[allow(clippy::unused_async)]
pub async fn auth_ldap(&self, _user_dn: &str, _password: &str) -> Result {
Err!(FeatureDisabled("ldap"))
}