From d0d391e9c41912be3f87bf2a93ca0350afaa2eea Mon Sep 17 00:00:00 2001 From: SimonThormeyer Date: Mon, 17 Jun 2024 12:27:46 +0200 Subject: [PATCH] style: run cargo fmt --- crypto/benches/utils/mls.rs | 7 ++++++- crypto/src/e2e_identity/mod.rs | 3 ++- keystore/tests/z_entities.rs | 4 +++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/crypto/benches/utils/mls.rs b/crypto/benches/utils/mls.rs index c6aa45131d..145376a887 100644 --- a/crypto/benches/utils/mls.rs +++ b/crypto/benches/utils/mls.rs @@ -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 diff --git a/crypto/src/e2e_identity/mod.rs b/crypto/src/e2e_identity/mod.rs index 0ab071bc45..30b0a14f1a 100644 --- a/crypto/src/e2e_identity/mod.rs +++ b/crypto/src/e2e_identity/mod.rs @@ -684,7 +684,8 @@ pub(crate) mod tests { Box::pin(async move { e }) } - pub(crate) type InitFnReturn<'a> = std::pin::Pin> + 'a>>; + pub(crate) type InitFnReturn<'a> = + std::pin::Pin> + 'a>>; /// Helps the compiler with its lifetime inference rules while passing async closures pub(crate) struct E2eiInitWrapper<'a> { diff --git a/keystore/tests/z_entities.rs b/keystore/tests/z_entities.rs index 819c49defd..debae41262 100644 --- a/keystore/tests/z_entities.rs +++ b/keystore/tests/z_entities.rs @@ -78,7 +78,9 @@ mod tests_impl { entity } - pub(crate) async fn can_find_entity + 'static>( + pub(crate) async fn can_find_entity< + R: EntityTestExt + Entity + 'static, + >( store: &CryptoKeystore, entity: &R, ) {