mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 06:59:36 -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},
|
||||
transport, TokioExecutor,
|
||||
},
|
||||
Never, SwapParams,
|
||||
SwapParams,
|
||||
};
|
||||
|
||||
pub type Swarm = libp2p::Swarm<Alice>;
|
||||
@ -68,13 +68,6 @@ fn new_swarm(listen: Multiaddr) -> Result<Swarm> {
|
||||
pub enum BehaviourOutEvent {
|
||||
Request(messenger::BehaviourOutEvent),
|
||||
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 {
|
||||
|
@ -19,7 +19,7 @@ use crate::{
|
||||
request_response::TIMEOUT,
|
||||
transport, TokioExecutor,
|
||||
},
|
||||
Cmd, Never, Rsp,
|
||||
Cmd, Rsp,
|
||||
};
|
||||
|
||||
pub async fn swap(
|
||||
@ -85,13 +85,6 @@ fn new_swarm() -> Result<Swarm> {
|
||||
pub enum BehaviourOutEvent {
|
||||
Response(messenger::BehaviourOutEvent),
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user