Skip to content

Commit 4af3cb5

Browse files
committed
fix(example_cli,electrum): clippy warnings
fix(example_cli): clippy warnings fix(electrum): clippy warnings
1 parent cb72f4a commit 4af3cb5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/electrum/tests/test_electrum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ where
6767
if let Some(chain_update) = update.chain_update.clone() {
6868
let _ = chain
6969
.apply_update(chain_update)
70-
.map_err(|err| anyhow::anyhow!("LocalChain update error: {:?}", err))?;
70+
.map_err(|err| anyhow::anyhow!("LocalChain update error: {err:?}"))?;
7171
}
7272
let _ = graph.apply_update(update.tx_update.clone());
7373

examples/example_cli/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl FromStr for CoinSelectionAlgo {
229229
"oldest-first" => OldestFirst,
230230
"newest-first" => NewestFirst,
231231
"bnb" => BranchAndBound,
232-
unknown => bail!("unknown coin selection algorithm '{}'", unknown),
232+
unknown => bail!("unknown coin selection algorithm '{unknown}'"),
233233
})
234234
}
235235
}
@@ -709,8 +709,8 @@ pub fn handle_commands<CS: clap::Subcommand, S: clap::Args>(
709709
_ => unimplemented!("multi xkey signer"),
710710
};
711711

712-
let _ = sign_res
713-
.map_err(|errors| anyhow::anyhow!("failed to sign PSBT {:?}", errors))?;
712+
let _ =
713+
sign_res.map_err(|errors| anyhow::anyhow!("failed to sign PSBT {errors:?}"))?;
714714

715715
let mut obj = serde_json::Map::new();
716716
obj.insert("psbt".to_string(), json!(psbt.to_string()));

0 commit comments

Comments
 (0)