Skip to content

Commit

Permalink
fix the clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed May 24, 2024
1 parent 74256d6 commit 8dd6a56
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions openmls/src/group/mls_group/membership.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ use crate::{
storage::OpenMlsProvider, treesync::LeafNode,
};

type UpdateResult<Provider> = Result<
(MlsMessageOut, Option<MlsMessageOut>, Option<GroupInfo>),
UpdateGroupMembershipError<<Provider as OpenMlsProvider>::StorageError>,
>;

impl MlsGroup {
/// Updates the group membership using only inline proposals.
/// Adds and removes members and updates the group context.
Expand All @@ -24,10 +29,7 @@ impl MlsGroup {
key_packages_to_add: &[KeyPackage],
leaf_nodes_to_remove: &[LeafNodeIndex],
new_extensions: Extensions,
) -> Result<
(MlsMessageOut, Option<MlsMessageOut>, Option<GroupInfo>),
UpdateGroupMembershipError<Provider::StorageError>,
> {
) -> UpdateResult<Provider> {
self.is_operational()?;

// Create inline add proposals from any provided key packages
Expand Down

0 comments on commit 8dd6a56

Please sign in to comment.