mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-02 14:56:10 -04:00
Use fully qualified path for bail
This commit is contained in:
parent
5e35904101
commit
42d194f758
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
//! Run an XMR/BTC swap in the role of Alice.
|
||||
//! Alice holds XMR and wishes receive BTC.
|
||||
use anyhow::{bail, Result};
|
||||
use anyhow::Result;
|
||||
use libp2p::{
|
||||
core::{identity::Keypair, Multiaddr},
|
||||
request_response::ResponseChannel,
|
||||
|
@ -120,7 +120,7 @@ fn new_swarm(listen: Multiaddr, port: Option<u16>) -> Result<Swarm> {
|
|||
{
|
||||
transport = match port {
|
||||
Some(port) => transport::build(local_key_pair, Some((listen.clone(), port)))?,
|
||||
None => bail!("Must supply local port"),
|
||||
None => anyhow::bail!("Must supply local port"),
|
||||
};
|
||||
}
|
||||
#[cfg(not(feature = "tor"))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue