mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 01:01:34 +00:00
*: Fix clippy warnings (#2615)
This commit is contained in:
@ -227,11 +227,11 @@ where
|
||||
) -> Poll<NetworkBehaviourAction<Self::OutEvent, Self::ConnectionHandler>> {
|
||||
let event = match self {
|
||||
Either::Left(behaviour) => futures::ready!(behaviour.poll(cx, params))
|
||||
.map_out(|e| Either::Left(e))
|
||||
.map_handler_and_in(|h| IntoEitherHandler::Left(h), |e| Either::Left(e)),
|
||||
.map_out(Either::Left)
|
||||
.map_handler_and_in(IntoEitherHandler::Left, Either::Left),
|
||||
Either::Right(behaviour) => futures::ready!(behaviour.poll(cx, params))
|
||||
.map_out(|e| Either::Right(e))
|
||||
.map_handler_and_in(|h| IntoEitherHandler::Right(h), |e| Either::Right(e)),
|
||||
.map_out(Either::Right)
|
||||
.map_handler_and_in(IntoEitherHandler::Right, Either::Right),
|
||||
};
|
||||
|
||||
Poll::Ready(event)
|
||||
|
Reference in New Issue
Block a user