chore: clippy (#750)

* chore: clippy

* chore: fmt
This commit is contained in:
thesimplekid
2025-05-14 15:55:37 +01:00
committed by GitHub
parent 056ddecfeb
commit e268866446
38 changed files with 65 additions and 82 deletions

View File

@@ -60,7 +60,7 @@ pub async fn attempt_to_swap_pending(wallet: &Wallet) -> Result<()> {
Err(err) => match err {
cdk::error::Error::TokenPending => (),
_ => {
println!("{:?}", err);
println!("{err:?}");
bail!("Wrong error")
}
},
@@ -154,13 +154,9 @@ pub async fn init_lnd_client() -> LndClient {
let lnd_dir = get_lnd_dir("one");
let cert_file = lnd_dir.join("tls.cert");
let macaroon_file = lnd_dir.join("data/chain/bitcoin/regtest/admin.macaroon");
LndClient::new(
format!("https://{}", LND_RPC_ADDR),
cert_file,
macaroon_file,
)
.await
.unwrap()
LndClient::new(format!("https://{LND_RPC_ADDR}"), cert_file, macaroon_file)
.await
.unwrap()
}
/// Pays a Bolt11Invoice if it's on the regtest network, otherwise returns Ok