Enable unused_async clippy lint
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user