Skip to content

Commit

Permalink
fix clilppy
Browse files Browse the repository at this point in the history
  • Loading branch information
roeierez committed Nov 14, 2024
1 parent 99e80c2 commit 66ffb56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/core/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ impl LiquidOnchainWallet {
signer: &SdkLwkSigner,
) -> Result<Wollet> {
let elements_network: ElementsNetwork = config.network.into();
let descriptor = LiquidOnchainWallet::get_descriptor(&signer, config.network)?;
let descriptor = LiquidOnchainWallet::get_descriptor(signer, config.network)?;
let mut lwk_persister =
FsPersister::new(working_dir.as_ref(), elements_network, &descriptor)?;

match Wollet::new(elements_network, lwk_persister, descriptor.clone()) {
Ok(wollet) => return Ok(wollet),
Ok(wollet) => Ok(wollet),
Err(lwk_wollet::Error::UpdateHeightTooOld { .. }) => {
warn!("Update height too old, wipping storage and retrying");
let mut path = working_dir.as_ref().to_path_buf();
Expand All @@ -143,7 +143,7 @@ impl LiquidOnchainWallet {
descriptor.clone(),
)?)
}
Err(e) => return Err(e.into()),
Err(e) => Err(e.into()),
}
}

Expand Down

0 comments on commit 66ffb56

Please sign in to comment.