Merge rust-bitcoin/rust-bitcoin#4438: Automated nightly rustfmt (2025-05-04)
1f19d9b4bd
2025-05-04 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: ACK 1f19d9b4bd8c55b9a7dc233c4b969d5d54d3a951; successfully ran local tests tcharding: ACK1f19d9b4bd
Tree-SHA512: c13d24482848cc6e103304b52bd51964fbca9f3b09b5c179af7956aef0537b6cc05014a203844c93d0b21da08cd51bf4a84dc5611b61ae5684ae57b0beb2848f
This commit is contained in:
commit
ec44656933
|
@ -1784,7 +1784,11 @@ mod test {
|
|||
let script = ScriptBuf::from_hex_no_length_prefix(script_hex).unwrap();
|
||||
let control_block = ControlBlock::from_hex(control_block_hex).unwrap();
|
||||
assert_eq!(control_block_hex, control_block.serialize().to_lower_hex_string());
|
||||
assert!(control_block.verify_taproot_commitment(secp, out_pk.to_x_only_public_key(), &script));
|
||||
assert!(control_block.verify_taproot_commitment(
|
||||
secp,
|
||||
out_pk.to_x_only_public_key(),
|
||||
&script
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -13,9 +13,9 @@ use std::panic;
|
|||
use ::serde::{Deserialize, Serialize};
|
||||
|
||||
use super::*;
|
||||
use crate::{MathOp, NumOpResult};
|
||||
#[cfg(feature = "alloc")]
|
||||
use crate::{FeeRate, Weight};
|
||||
use crate::{MathOp, NumOpResult};
|
||||
|
||||
#[track_caller]
|
||||
fn sat(sat: u64) -> Amount { Amount::from_sat(sat).unwrap() }
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
//! Do basic regression tests on the `Display` and `FromStr` impls.
|
||||
|
||||
use bitcoin_units::locktime::{absolute, relative};
|
||||
use bitcoin_units::amount::Denomination;
|
||||
use bitcoin_units::locktime::{absolute, relative};
|
||||
use bitcoin_units::{Amount, BlockHeight, BlockInterval, FeeRate, SignedAmount, Weight};
|
||||
|
||||
macro_rules! check {
|
||||
|
|
Loading…
Reference in New Issue