Remove unneeded as_ref_calls

This commit is contained in:
Franck Royer 2020-12-04 14:41:57 +11:00
parent 1c7cc7ee46
commit a24d1a49b9
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -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,