From 931a4f5b593fd0b1be71e5f192ffaa4ab4d04fee Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Tue, 2 Jul 2024 15:13:39 -0700 Subject: [PATCH] fmt fix --- bindings_ffi/src/mls.rs | 5 +---- xmtp_mls/src/groups/group_mutable_metadata.rs | 6 ++++-- xmtp_mls/src/groups/mod.rs | 3 +-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/bindings_ffi/src/mls.rs b/bindings_ffi/src/mls.rs index fb6daab32..27944bae9 100644 --- a/bindings_ffi/src/mls.rs +++ b/bindings_ffi/src/mls.rs @@ -902,10 +902,7 @@ impl FfiGroup { Ok(group_description) } - pub async fn update_pinned_frame( - &self, - pinned_frame: String, - ) -> Result<(), GenericError> { + pub async fn update_pinned_frame(&self, pinned_frame: String) -> Result<(), GenericError> { let group = MlsGroup::new( self.inner_client.context().clone(), self.group_id.clone(), diff --git a/xmtp_mls/src/groups/group_mutable_metadata.rs b/xmtp_mls/src/groups/group_mutable_metadata.rs index a35301dc6..7bb8b8ca1 100644 --- a/xmtp_mls/src/groups/group_mutable_metadata.rs +++ b/xmtp_mls/src/groups/group_mutable_metadata.rs @@ -12,7 +12,8 @@ use xmtp_proto::xmtp::mls::message_contents::{ }; use crate::configuration::{ - DEFAULT_GROUP_DESCRIPTION, DEFAULT_GROUP_IMAGE_URL_SQUARE, DEFAULT_GROUP_NAME, DEFAULT_PINNED_FRAME, MUTABLE_METADATA_EXTENSION_ID + DEFAULT_GROUP_DESCRIPTION, DEFAULT_GROUP_IMAGE_URL_SQUARE, DEFAULT_GROUP_NAME, + DEFAULT_PINNED_FRAME, MUTABLE_METADATA_EXTENSION_ID, }; use super::GroupMetadataOptions; @@ -100,7 +101,8 @@ impl GroupMutableMetadata { ); attributes.insert( MetadataField::PinnedFrame.to_string(), - opts.pinned_frame.unwrap_or_else(|| DEFAULT_PINNED_FRAME.to_string()), + opts.pinned_frame + .unwrap_or_else(|| DEFAULT_PINNED_FRAME.to_string()), ); let admin_list = vec![]; let super_admin_list = vec![creator_inbox_id.clone()]; diff --git a/xmtp_mls/src/groups/mod.rs b/xmtp_mls/src/groups/mod.rs index f3f1aaa2f..6d1f8bf53 100644 --- a/xmtp_mls/src/groups/mod.rs +++ b/xmtp_mls/src/groups/mod.rs @@ -747,8 +747,7 @@ impl MlsGroup { { let conn = self.context.store.conn()?; let intent_data: Vec = - UpdateMetadataIntentData::new_update_pinned_frame(pinned_frame) - .into(); + UpdateMetadataIntentData::new_update_pinned_frame(pinned_frame).into(); let intent = conn.insert_group_intent(NewGroupIntent::new( IntentKind::MetadataUpdate, self.group_id.clone(),