From 2abd65565b0f7f93b307410e30c3be03ab925821 Mon Sep 17 00:00:00 2001 From: Vaibhav Date: Tue, 10 Oct 2023 15:35:45 +0530 Subject: [PATCH] fix: check-code error on concourse (#356) --- src/cli/mod.rs | 2 +- src/job/sync_wallet.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index c7fced63..bb4a949f 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -972,7 +972,7 @@ fn api_client(bria_home: String, url: Option, api_key: String) -> api_clien api_client::ApiClient::new( bria_home, url.map(|url| api_client::ApiClientConfig { url }) - .unwrap_or_else(api_client::ApiClientConfig::default), + .unwrap_or_default(), api_key, ) } diff --git a/src/job/sync_wallet.rs b/src/job/sync_wallet.rs index 22ebdb72..fb7d52e1 100644 --- a/src/job/sync_wallet.rs +++ b/src/job/sync_wallet.rs @@ -319,7 +319,7 @@ pub async fn execute( HashMap::new(), |mut m, u| { m.entry(u.utxo_detected_ledger_tx_id) - .or_insert_with(Vec::new) + .or_default() .push(u.outpoint); m },