Skip to content

Commit 31cc2a6

Browse files
committed
fix(example_cli): clippy errors
1 parent cb72f4a commit 31cc2a6

File tree

1 file changed

+3
-3
lines changed
  • examples/example_cli/src

1 file changed

+3
-3
lines changed

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)