Skip to content

Commit

Permalink
style: run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonThormeyer committed Jun 17, 2024
1 parent 0fcf6a4 commit d0d391e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 6 additions & 1 deletion crypto/benches/utils/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,12 @@ pub(crate) async fn rand_key_package(ciphersuite: MlsCiphersuite) -> (KeyPackage
(kp, client_id.into())
}

pub(crate) async fn invite(from: &mut MlsCentral, other: &mut MlsCentral, id: &ConversationId, ciphersuite: MlsCiphersuite) {
pub(crate) async fn invite(
from: &mut MlsCentral,
other: &mut MlsCentral,
id: &ConversationId,
ciphersuite: MlsCiphersuite,
) {
let other_kps = other
.get_or_create_client_keypackages(ciphersuite, MlsCredentialType::Basic, 1)
.await
Expand Down
3 changes: 2 additions & 1 deletion crypto/src/e2e_identity/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,8 @@ pub(crate) mod tests {
Box::pin(async move { e })
}

pub(crate) type InitFnReturn<'a> = std::pin::Pin<Box<dyn std::future::Future<Output = CryptoResult<E2eiEnrollment>> + 'a>>;
pub(crate) type InitFnReturn<'a> =
std::pin::Pin<Box<dyn std::future::Future<Output = CryptoResult<E2eiEnrollment>> + 'a>>;

/// Helps the compiler with its lifetime inference rules while passing async closures
pub(crate) struct E2eiInitWrapper<'a> {
Expand Down
4 changes: 3 additions & 1 deletion keystore/tests/z_entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ mod tests_impl {
entity
}

pub(crate) async fn can_find_entity<R: EntityTestExt + Entity<ConnectionType = KeystoreDatabaseConnection> + 'static>(
pub(crate) async fn can_find_entity<
R: EntityTestExt + Entity<ConnectionType = KeystoreDatabaseConnection> + 'static,
>(
store: &CryptoKeystore,
entity: &R,
) {
Expand Down

0 comments on commit d0d391e

Please sign in to comment.