From 0e8c5ea91848db62548b3ac2dd6bc4734c45dd44 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 24 Jun 2021 20:08:31 +1000 Subject: [PATCH] Remove useless enum --- swap/src/protocol/alice/swap_setup.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/swap/src/protocol/alice/swap_setup.rs b/swap/src/protocol/alice/swap_setup.rs index 54e645d7..bf339e16 100644 --- a/swap/src/protocol/alice/swap_setup.rs +++ b/swap/src/protocol/alice/swap_setup.rs @@ -190,7 +190,7 @@ where &mut self, _cx: &mut Context<'_>, _params: &mut impl PollParameters, - ) -> Poll> { + ) -> Poll> { if let Some(event) = self.events.pop_front() { return Poll::Ready(NetworkBehaviourAction::GenerateEvent(event)); } @@ -250,13 +250,11 @@ pub enum HandlerOutEvent { Completed(anyhow::Result<(Uuid, alice::State3), Error>), } -pub enum HandlerInEvent {} - impl ProtocolsHandler for Handler where LR: LatestRate + Send + 'static, { - type InEvent = HandlerInEvent; + type InEvent = (); type OutEvent = HandlerOutEvent; type Error = Error; type InboundProtocol = protocol::SwapSetup;