From 39e0b45da91de99ee8a02a9e504046d6c53dd067 Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Thu, 24 Jun 2021 19:47:30 +1000 Subject: [PATCH] Unreachables for handler injects that Alice does not support --- swap/src/protocol/alice/swap_setup.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/swap/src/protocol/alice/swap_setup.rs b/swap/src/protocol/alice/swap_setup.rs index fbdbfcdb..b324dd68 100644 --- a/swap/src/protocol/alice/swap_setup.rs +++ b/swap/src/protocol/alice/swap_setup.rs @@ -470,20 +470,20 @@ where self.events.push_back(HandlerOutEvent::Initiated(receiver)); } - fn inject_fully_negotiated_outbound(&mut self, protocol: Void, info: Self::OutboundOpenInfo) { - unreachable!("we don't support outbound") + fn inject_fully_negotiated_outbound(&mut self, _: Void, _: Self::OutboundOpenInfo) { + unreachable!("Alice does not support outbound in the hanlder") } - fn inject_event(&mut self, event: Self::InEvent) { - todo!() + fn inject_event(&mut self, _: Self::InEvent) { + unreachable!("Alice does not receive events from the Behaviour in the handler") } fn inject_dial_upgrade_error( &mut self, - info: Self::OutboundOpenInfo, - error: ProtocolsHandlerUpgrErr, + _: Self::OutboundOpenInfo, + _: ProtocolsHandlerUpgrErr, ) { - todo!() + unreachable!("Alice does not dial") } fn connection_keep_alive(&self) -> KeepAlive {