diff --git a/matrix_sdk_crypto/src/machine.rs b/matrix_sdk_crypto/src/machine.rs index 3ee383f7..4ffde40f 100644 --- a/matrix_sdk_crypto/src/machine.rs +++ b/matrix_sdk_crypto/src/machine.rs @@ -192,10 +192,10 @@ impl OlmMachine { #[cfg(feature = "sqlite_cryptostore")] #[instrument(skip(path, passphrase))] #[cfg_attr(feature = "docs", doc(cfg(r#sqlite_cryptostore)))] - pub async fn new_with_default_store>( + pub async fn new_with_default_store( user_id: &UserId, device_id: &DeviceId, - path: P, + path: impl AsRef, passphrase: &str, ) -> StoreResult { let store = @@ -1316,10 +1316,7 @@ impl OlmMachine { /// /// If the user is already known to the Olm machine it will not be /// considered for a key query. - pub async fn update_tracked_users<'a, I>(&self, users: I) - where - I: IntoIterator, - { + pub async fn update_tracked_users(&self, users: impl IntoIterator) { for user in users { if self.store.is_user_tracked(user) { continue;