Merge rust-bitcoin/rust-bitcoin#2847: Automated nightly rustfmt (2024-06-09)
8e9be3beed
2024-06-09 automated rustfmt nightly (Fmt Bot) Pull request description: Automated nightly `rustfmt` changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action ACKs for top commit: apoelstra: ACK8e9be3beed
Tree-SHA512: 108984e580a61d979ce77e6a366e6dfcfd704cc420a68d25db211974321842342d61c0f63bfa259f56d63d9a69af49099b0157db6ba3f926e1d6543f5a839d26
This commit is contained in:
commit
0d72db7727
|
@ -25,9 +25,10 @@ fn do_test(data: &[u8]) {
|
|||
assert_eq!(ser, bitcoin::psbt::Psbt::serialize(&deser));
|
||||
|
||||
let new_bytes = consume_random_bytes(&mut new_data);
|
||||
let psbt_b: Result<bitcoin::psbt::Psbt, _> = bitcoin::psbt::Psbt::deserialize(new_bytes);
|
||||
let psbt_b: Result<bitcoin::psbt::Psbt, _> =
|
||||
bitcoin::psbt::Psbt::deserialize(new_bytes);
|
||||
match psbt_b {
|
||||
Err(_) => {},
|
||||
Err(_) => {}
|
||||
Ok(mut psbt_b) => {
|
||||
assert_eq!(psbt_b.combine(psbt.clone()).is_ok(), psbt.combine(psbt_b).is_ok());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue