From 42d194f7588a257e4b2c16d2b99c83d8e01b4809 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 28 Oct 2020 09:21:37 +1100 Subject: [PATCH] Use fully qualified path for bail --- swap/src/alice.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swap/src/alice.rs b/swap/src/alice.rs index bbaf00ac..0323f308 100644 --- a/swap/src/alice.rs +++ b/swap/src/alice.rs @@ -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) -> Result { { 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"))]