Skip to content

Commit 0a33219

Browse files
committed
fix(example_cli): clippy warnings
1 parent d0c691f commit 0a33219

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
}
@@ -715,8 +715,8 @@ pub fn handle_commands<CS: clap::Subcommand, S: clap::Args>(
715715
_ => unimplemented!("multi xkey signer"),
716716
};
717717

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

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

0 commit comments

Comments
 (0)