Skip to content

Commit fe9179c

Browse files
authored
chore: remove redundant .to_string() call in embedded example
1 parent 8b0054f commit fe9179c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/embedded/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn main() -> ! {
4646
let address = Address::p2wpkh(pubkey, Network::Bitcoin);
4747
hprintln!("Address: {}", address).unwrap();
4848

49-
assert_eq!(address.to_string(), "bc1qpx9t9pzzl4qsydmhyt6ctrxxjd4ep549np9993".to_string());
49+
assert_eq!(address.to_string(), "bc1qpx9t9pzzl4qsydmhyt6ctrxxjd4ep549np9993");
5050
// exit QEMU
5151
// NOTE do not run this on hardware; it can corrupt OpenOCD state
5252
debug::exit(debug::EXIT_SUCCESS);

0 commit comments

Comments
 (0)