From 8167f5e9de962b079e452de549ccf788ad7585c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Sun, 16 Aug 2020 16:25:48 +0200 Subject: [PATCH] crypto: Simplify the function signature of the share group session method. --- matrix_sdk_crypto/src/machine.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/matrix_sdk_crypto/src/machine.rs b/matrix_sdk_crypto/src/machine.rs index d3d15a13..e7bd5f58 100644 --- a/matrix_sdk_crypto/src/machine.rs +++ b/matrix_sdk_crypto/src/machine.rs @@ -986,14 +986,13 @@ impl OlmMachine { /// used. /// /// `users` - The list of users that should receive the group session. - pub async fn share_group_session<'a, I, S>( + pub async fn share_group_session( &self, room_id: &RoomId, - users: I, + users: impl Iterator, encryption_settings: S, ) -> OlmResult> where - I: IntoIterator, S: Into + Sized, { self.create_outbound_group_session(room_id, encryption_settings.into())