mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 23:19:34 -05:00
Remove unneeded From<Never> impl
This commit is contained in:
parent
40e97ffdc3
commit
47eaa44f76
@ -19,7 +19,7 @@ use crate::{
|
|||||||
request_response::{AliceToBob, TIMEOUT},
|
request_response::{AliceToBob, TIMEOUT},
|
||||||
transport, TokioExecutor,
|
transport, TokioExecutor,
|
||||||
},
|
},
|
||||||
Never, SwapParams,
|
SwapParams,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub type Swarm = libp2p::Swarm<Alice>;
|
pub type Swarm = libp2p::Swarm<Alice>;
|
||||||
@ -68,13 +68,6 @@ fn new_swarm(listen: Multiaddr) -> Result<Swarm> {
|
|||||||
pub enum BehaviourOutEvent {
|
pub enum BehaviourOutEvent {
|
||||||
Request(messenger::BehaviourOutEvent),
|
Request(messenger::BehaviourOutEvent),
|
||||||
ConnectionEstablished(PeerId),
|
ConnectionEstablished(PeerId),
|
||||||
Never, // FIXME: Why do we need this?
|
|
||||||
}
|
|
||||||
|
|
||||||
impl From<Never> for BehaviourOutEvent {
|
|
||||||
fn from(_: Never) -> Self {
|
|
||||||
BehaviourOutEvent::Never
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<messenger::BehaviourOutEvent> for BehaviourOutEvent {
|
impl From<messenger::BehaviourOutEvent> for BehaviourOutEvent {
|
||||||
|
@ -19,7 +19,7 @@ use crate::{
|
|||||||
request_response::TIMEOUT,
|
request_response::TIMEOUT,
|
||||||
transport, TokioExecutor,
|
transport, TokioExecutor,
|
||||||
},
|
},
|
||||||
Cmd, Never, Rsp,
|
Cmd, Rsp,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub async fn swap(
|
pub async fn swap(
|
||||||
@ -85,13 +85,6 @@ fn new_swarm() -> Result<Swarm> {
|
|||||||
pub enum BehaviourOutEvent {
|
pub enum BehaviourOutEvent {
|
||||||
Response(messenger::BehaviourOutEvent),
|
Response(messenger::BehaviourOutEvent),
|
||||||
ConnectionEstablished(PeerId),
|
ConnectionEstablished(PeerId),
|
||||||
Never, // FIXME: Why do we need this?
|
|
||||||
}
|
|
||||||
|
|
||||||
impl From<Never> for BehaviourOutEvent {
|
|
||||||
fn from(_: Never) -> Self {
|
|
||||||
BehaviourOutEvent::Never
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<messenger::BehaviourOutEvent> for BehaviourOutEvent {
|
impl From<messenger::BehaviourOutEvent> for BehaviourOutEvent {
|
||||||
|
Loading…
Reference in New Issue
Block a user