2025-05-04 automated rustfmt nightly
This commit is contained in:
parent
082075304e
commit
1f19d9b4bd
|
@ -888,7 +888,7 @@ impl TweakedPublicKey {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[deprecated(since="0.33.0", note="use to_x_only_public_key() instead")]
|
#[deprecated(since = "0.33.0", note = "use to_x_only_public_key() instead")]
|
||||||
pub fn to_inner(self) -> XOnlyPublicKey { self.0 }
|
pub fn to_inner(self) -> XOnlyPublicKey { self.0 }
|
||||||
|
|
||||||
/// Returns the underlying x-only public key.
|
/// Returns the underlying x-only public key.
|
||||||
|
@ -916,7 +916,7 @@ impl TweakedKeypair {
|
||||||
pub fn dangerous_assume_tweaked(pair: Keypair) -> TweakedKeypair { TweakedKeypair(pair) }
|
pub fn dangerous_assume_tweaked(pair: Keypair) -> TweakedKeypair { TweakedKeypair(pair) }
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[deprecated(since="0.33.0", note="use to_keypair() instead")]
|
#[deprecated(since = "0.33.0", note = "use to_keypair() instead")]
|
||||||
pub fn to_inner(self) -> Keypair { self.0 }
|
pub fn to_inner(self) -> Keypair { self.0 }
|
||||||
|
|
||||||
/// Returns the underlying key pair.
|
/// Returns the underlying key pair.
|
||||||
|
|
|
@ -1784,7 +1784,11 @@ mod test {
|
||||||
let script = ScriptBuf::from_hex_no_length_prefix(script_hex).unwrap();
|
let script = ScriptBuf::from_hex_no_length_prefix(script_hex).unwrap();
|
||||||
let control_block = ControlBlock::from_hex(control_block_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_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]
|
#[test]
|
||||||
|
|
|
@ -13,9 +13,9 @@ use std::panic;
|
||||||
use ::serde::{Deserialize, Serialize};
|
use ::serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::{MathOp, NumOpResult};
|
|
||||||
#[cfg(feature = "alloc")]
|
#[cfg(feature = "alloc")]
|
||||||
use crate::{FeeRate, Weight};
|
use crate::{FeeRate, Weight};
|
||||||
|
use crate::{MathOp, NumOpResult};
|
||||||
|
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
fn sat(sat: u64) -> Amount { Amount::from_sat(sat).unwrap() }
|
fn sat(sat: u64) -> Amount { Amount::from_sat(sat).unwrap() }
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
//! Do basic regression tests on the `Display` and `FromStr` impls.
|
//! Do basic regression tests on the `Display` and `FromStr` impls.
|
||||||
|
|
||||||
use bitcoin_units::locktime::{absolute, relative};
|
|
||||||
use bitcoin_units::amount::Denomination;
|
use bitcoin_units::amount::Denomination;
|
||||||
|
use bitcoin_units::locktime::{absolute, relative};
|
||||||
use bitcoin_units::{Amount, BlockHeight, BlockInterval, FeeRate, SignedAmount, Weight};
|
use bitcoin_units::{Amount, BlockHeight, BlockInterval, FeeRate, SignedAmount, Weight};
|
||||||
|
|
||||||
macro_rules! check {
|
macro_rules! check {
|
||||||
|
|
Loading…
Reference in New Issue