From 2ead7f33fb5da4b2773cd5a6252ca813ec88e33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zoe=20Faltib=C3=A0?= Date: Thu, 25 Apr 2024 10:33:58 +0200 Subject: [PATCH] lint tests --- src/test/mod.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/mod.rs b/src/test/mod.rs index b2da53b..55e3b0f 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -490,7 +490,7 @@ async fn _with_ln_balance_checks( payment_hash: &str, ) { if let Some(asset_id) = &asset_id { - let ln_balance_rgb = asset_balance_offchain_outbound(node_address, &asset_id).await; + let ln_balance_rgb = asset_balance_offchain_outbound(node_address, asset_id).await; assert_eq!(ln_balance_rgb, initial_ln_balance_rgb.unwrap()); } check_payment_status(node_address, payment_hash, HTLCStatus::Pending) @@ -498,7 +498,7 @@ async fn _with_ln_balance_checks( .unwrap(); if let Some(asset_id) = &asset_id { let counterparty_ln_balance_rgb = - asset_balance_offchain_outbound(counterparty_node_address, &asset_id).await; + asset_balance_offchain_outbound(counterparty_node_address, asset_id).await; assert_eq!( counterparty_ln_balance_rgb, counterparty_initial_ln_balance_rgb.unwrap() @@ -507,7 +507,7 @@ async fn _with_ln_balance_checks( if let Some(asset_id) = &asset_id { let final_ln_balance_rgb = initial_ln_balance_rgb.unwrap() - asset_amount.unwrap(); - wait_for_ln_balance(node_address, &asset_id, final_ln_balance_rgb).await; + wait_for_ln_balance(node_address, asset_id, final_ln_balance_rgb).await; } wait_for_ln_payment(node_address, payment_hash, HTLCStatus::Succeeded).await; if let Some(asset_id) = &asset_id { @@ -515,7 +515,7 @@ async fn _with_ln_balance_checks( counterparty_initial_ln_balance_rgb.unwrap() + asset_amount.unwrap(); wait_for_ln_balance( counterparty_node_address, - &asset_id, + asset_id, counterparty_final_ln_balance, ) .await; @@ -666,6 +666,7 @@ async fn node_info(node_address: SocketAddr) -> NodeInfoResponse { .unwrap() } +#[allow(clippy::too_many_arguments)] async fn open_channel_with_custom_fees( node_address: SocketAddr, dest_peer_pubkey: &str,