Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jan 19, 2023
1 parent 82d8841 commit a9cd19b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fmt:
cargo fmt

clippy:
cargo clippy --all --all-targets
cargo clippy --all --all-targets -- -D warnings

lclippy:
cargo lclippy --all --all-targets -- -D warnings
Expand Down
8 changes: 3 additions & 5 deletions src/subcommand/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,9 @@ fn get_unspent_outputs(options: &Options) -> Result<BTreeMap<OutPoint, Amount>>
}

fn get_change_address(client: &Client) -> Result<Address> {
Ok(
client
.call("getrawchangeaddress", &["bech32m".into()])
.context("could not get change addresses from wallet")?,
)
client
.call("getrawchangeaddress", &["bech32m".into()])
.context("could not get change addresses from wallet")
}

fn initialize_wallet(options: &Options, seed: [u8; 64]) -> Result {
Expand Down

0 comments on commit a9cd19b

Please sign in to comment.