From d682433ec9aa98ac75580bcca18cdadf01617743 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 18 Mar 2021 12:14:39 +1100 Subject: [PATCH] Move `EventLoopHandle` next to its impl block This struct is not that important so it can move further down. --- swap/src/protocol/alice/event_loop.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/swap/src/protocol/alice/event_loop.rs b/swap/src/protocol/alice/event_loop.rs index 537a476e..c04dbdb8 100644 --- a/swap/src/protocol/alice/event_loop.rs +++ b/swap/src/protocol/alice/event_loop.rs @@ -42,12 +42,6 @@ pub struct EventLoop { swap_sender: mpsc::Sender, } -#[derive(Debug)] -pub struct EventLoopHandle { - recv_encrypted_signature: Option>, - send_transfer_proof: Option>, -} - impl EventLoop where LR: LatestRate, @@ -310,6 +304,12 @@ impl LatestRate for kraken::RateUpdateStream { } } +#[derive(Debug)] +pub struct EventLoopHandle { + recv_encrypted_signature: Option>, + send_transfer_proof: Option>, +} + impl EventLoopHandle { pub async fn recv_encrypted_signature(&mut self) -> Result { let signature = self