From 5f31d6001ceffbb853138d1ff263508b68df6bd1 Mon Sep 17 00:00:00 2001 From: Nikita Masych Date: Mon, 9 Sep 2024 16:31:37 +0300 Subject: [PATCH] fix: resolve linter issue with complex return type --- src/party.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/party.rs b/src/party.rs index 146a11f..c9300c4 100644 --- a/src/party.rs +++ b/src/party.rs @@ -1004,15 +1004,16 @@ pub(crate) mod tests { assert_eq!(event_receiver.recv().await.unwrap(), PartyEvent::Finalize); } + // Type aggregating `receiver from` and `sender into` party, which are + // intended for external system to communicate with the party. + type PartyExternalChannels = (UnboundedReceiver, UnboundedSender); + // Create test parties with predefined generics, based on config. fn create_parties( cfg: BPConConfig, ) -> ( Vec>, - Vec<( - UnboundedReceiver, - UnboundedSender, - )>, + Vec, ) { let value_selector = MockValueSelector; let leader_elector = Box::new(DefaultLeaderElector::new());