From d051e0f15ba3c3d40d62aba8f21abde095ac0e93 Mon Sep 17 00:00:00 2001 From: rishflab Date: Thu, 1 Jul 2021 16:07:12 +1000 Subject: [PATCH] Fix dprint formatting errors --- swap/src/asb/rendezvous.rs | 3 ++- swap/tests/harness/mod.rs | 17 +++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/swap/src/asb/rendezvous.rs b/swap/src/asb/rendezvous.rs index 2911dbf4..301c30cc 100644 --- a/swap/src/asb/rendezvous.rs +++ b/swap/src/asb/rendezvous.rs @@ -12,7 +12,8 @@ use libp2p::{Multiaddr, PeerId}; use std::task::{Context, Poll}; use std::time::{Duration, Instant}; -/// A `NetworkBehaviour` that handles registration of the xmr-btc swap service with a rendezvous point +/// A `NetworkBehaviour` that handles registration of the xmr-btc swap service +/// with a rendezvous point pub struct Behaviour { rendezvous_behaviour: libp2p::rendezvous::Rendezvous, rendezvous_point_peer_id: PeerId, diff --git a/swap/tests/harness/mod.rs b/swap/tests/harness/mod.rs index c6e4bdfa..7a03db2d 100644 --- a/swap/tests/harness/mod.rs +++ b/swap/tests/harness/mod.rs @@ -156,16 +156,13 @@ async fn init_containers(cli: &Cli) -> (Monero, Containers<'_>) { .await .unwrap(); - ( - monero, - Containers { - bitcoind_url, - bitcoind, - monerod_container, - monero_wallet_rpc_containers, - electrs, - }, - ) + (monero, Containers { + bitcoind_url, + bitcoind, + monerod_container, + monero_wallet_rpc_containers, + electrs, + }) } async fn init_bitcoind_container(