From 3aa3fb14ab18c2a9fa671607037aa8c3358fb715 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Fri, 5 Apr 2024 17:07:16 -0700 Subject: [PATCH] run cargo fmt to reformat it --- bindings_ffi/src/mls.rs | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/bindings_ffi/src/mls.rs b/bindings_ffi/src/mls.rs index 759df7fee..221efcc8a 100644 --- a/bindings_ffi/src/mls.rs +++ b/bindings_ffi/src/mls.rs @@ -19,7 +19,8 @@ use xmtp_mls::{ client::Client as MlsClient, groups::MlsGroup, storage::{ - group_message::StoredGroupMessage, EncryptedMessageStore, EncryptionKey, StorageOption, group_message::GroupMessageKind, + group_message::GroupMessageKind, group_message::StoredGroupMessage, EncryptedMessageStore, + EncryptionKey, StorageOption, }, types::Address, }; @@ -224,7 +225,10 @@ impl FfiConversations { Ok(out) } - pub fn process_streamed_welcome_message(&self, envelope_bytes: Vec) -> Result, GenericError> { + pub fn process_streamed_welcome_message( + &self, + envelope_bytes: Vec, + ) -> Result, GenericError> { let inner = self.inner_client.as_ref(); let group = inner.process_streamed_welcome_message(envelope_bytes)?; @@ -365,7 +369,13 @@ impl FfiGroup { ); let messages: Vec = group - .find_messages(None, opts.sent_before_ns, opts.sent_after_ns, None, opts.limit)? + .find_messages( + None, + opts.sent_before_ns, + opts.sent_after_ns, + None, + opts.limit, + )? .into_iter() .map(|msg| msg.into()) .collect(); @@ -373,7 +383,10 @@ impl FfiGroup { Ok(messages) } - pub async fn process_streamed_group_message(&self, envelope_bytes: Vec) -> Result { + pub async fn process_streamed_group_message( + &self, + envelope_bytes: Vec, + ) -> Result { let group = MlsGroup::new( self.inner_client.as_ref(), self.group_id.clone(), @@ -381,7 +394,7 @@ impl FfiGroup { ); let message = group.process_streamed_group_message(envelope_bytes).await?; let ffi_message = message.into(); - + Ok(ffi_message) }