From 8dd6a5614b6ae14d104dba4656d089dee2e94c39 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Fri, 24 May 2024 11:19:10 -0700 Subject: [PATCH] fix the clippy issue --- openmls/src/group/mls_group/membership.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/openmls/src/group/mls_group/membership.rs b/openmls/src/group/mls_group/membership.rs index 473699a7d..c1bf84b18 100644 --- a/openmls/src/group/mls_group/membership.rs +++ b/openmls/src/group/mls_group/membership.rs @@ -14,6 +14,11 @@ use crate::{ storage::OpenMlsProvider, treesync::LeafNode, }; +type UpdateResult = Result< + (MlsMessageOut, Option, Option), + UpdateGroupMembershipError<::StorageError>, +>; + impl MlsGroup { /// Updates the group membership using only inline proposals. /// Adds and removes members and updates the group context. @@ -24,10 +29,7 @@ impl MlsGroup { key_packages_to_add: &[KeyPackage], leaf_nodes_to_remove: &[LeafNodeIndex], new_extensions: Extensions, - ) -> Result< - (MlsMessageOut, Option, Option), - UpdateGroupMembershipError, - > { + ) -> UpdateResult { self.is_operational()?; // Create inline add proposals from any provided key packages