Skip to content

Commit

Permalink
Fix clippy lints (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Oct 5, 2023
1 parent 8714576 commit 60e8cd3
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/topology/ping_pong.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}),
}
}
}
Expand Down

0 comments on commit 60e8cd3

Please sign in to comment.