From d01e444c90cd221fe9b9729488ba5849da1f4bcf Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 9 Jun 2021 09:58:00 +1000 Subject: [PATCH] Import anyhow::Result instead of fully-qualifying it --- swap/src/network/tor_transport.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swap/src/network/tor_transport.rs b/swap/src/network/tor_transport.rs index 772470af..a2fc0b56 100644 --- a/swap/src/network/tor_transport.rs +++ b/swap/src/network/tor_transport.rs @@ -1,4 +1,4 @@ -use anyhow::anyhow; +use anyhow::{anyhow, Result}; use data_encoding::BASE32; use futures::future::Ready; use futures::prelude::*; @@ -76,7 +76,7 @@ impl Transport for TorTcpConfig { /// Tor expects an address format of ADDR:PORT. /// This helper function tries to convert the provided multi-address into this /// format. None is returned if an unsupported protocol was provided. -fn to_address_string(multi: Multiaddr) -> anyhow::Result { +fn to_address_string(multi: Multiaddr) -> Result { let mut protocols = multi.iter(); let address_string = match protocols.next() { // if it is an Onion address, we have all we need and can return