From a24d1a49b9dec6ea86a08c8318c0c366636f660a Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 4 Dec 2020 14:41:57 +1100 Subject: [PATCH] Remove unneeded `as_ref_calls` --- swap/tests/alice_safe_restart.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/swap/tests/alice_safe_restart.rs b/swap/tests/alice_safe_restart.rs index ecfd9c16..4fd0e1ea 100644 --- a/swap/tests/alice_safe_restart.rs +++ b/swap/tests/alice_safe_restart.rs @@ -189,13 +189,13 @@ async fn alice_safe_restart_after_btc_is_locked() { try_join(alice_swap, bob_swap).await.unwrap(); - let btc_alice_final = alice_btc_wallet.as_ref().balance().await.unwrap(); - let btc_bob_final = bob_btc_wallet.as_ref().balance().await.unwrap(); + let btc_alice_final = alice_btc_wallet.balance().await.unwrap(); + let btc_bob_final = bob_btc_wallet.balance().await.unwrap(); - let xmr_alice_final = alice_xmr_wallet.as_ref().get_balance().await.unwrap(); + let xmr_alice_final = alice_xmr_wallet.get_balance().await.unwrap(); - bob_xmr_wallet.as_ref().0.refresh().await.unwrap(); - let xmr_bob_final = bob_xmr_wallet.as_ref().get_balance().await.unwrap(); + bob_xmr_wallet.0.refresh().await.unwrap(); + let xmr_bob_final = bob_xmr_wallet.get_balance().await.unwrap(); assert_eq!( btc_alice_final,