From c3eb4d81064172220ab04c5f0bc0c3f7c3146cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 20 Aug 2020 10:36:58 +0200 Subject: [PATCH] crypto: Simplify some more function definitions. --- matrix_sdk_crypto/src/machine.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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;