From 653433eff7c474f9d8b9a36a01076655137ff6c2 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 5 Oct 2023 12:14:27 -0500 Subject: [PATCH] Fix clippy lints --- src/topology/ping_pong.rs | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/topology/ping_pong.rs b/src/topology/ping_pong.rs index c55d4f638..7fdb501c9 100644 --- a/src/topology/ping_pong.rs +++ b/src/topology/ping_pong.rs @@ -652,18 +652,14 @@ where (PrepareTransition::Finish(output_share), None) => { Ok(PingPongContinuedValue::FinishedNoMessage { output_share }) } - (PrepareTransition::Continue(_, _), None) => { - return Err(PingPongError::PeerMessageMismatch { - found: inbound.variant(), - expected: "continue", - }) - } - (PrepareTransition::Finish(_), Some(_)) => { - return Err(PingPongError::PeerMessageMismatch { - found: inbound.variant(), - expected: "finish", - }) - } + (PrepareTransition::Continue(_, _), None) => Err(PingPongError::PeerMessageMismatch { + found: inbound.variant(), + expected: "continue", + }), + (PrepareTransition::Finish(_), Some(_)) => Err(PingPongError::PeerMessageMismatch { + found: inbound.variant(), + expected: "finish", + }), } } }