Merge rust-bitcoin/rust-bitcoin#4333: Automated nightly rustfmt (2025-04-13)

19c5fcc78f 2025-04-13 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:
  tcharding:
    ACK 19c5fcc78f

Tree-SHA512: 1008800b18e1efc14e773d4364ccbda0f8382e93c55feec22f6570d26cc7ad826c984c2fd4e17feabf37cd91e1eb17bcb019d7b0310568616bf3ca594abddf3c
This commit is contained in:
merge-script 2025-04-15 14:05:51 +00:00
commit a7c7ff94a6
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
3 changed files with 6 additions and 7 deletions

View File

@ -135,7 +135,9 @@ mod sealed {
/// Marker of status of address's network validation. See section [*Parsing addresses*](Address#parsing-addresses) /// Marker of status of address's network validation. See section [*Parsing addresses*](Address#parsing-addresses)
/// on [`Address`] for details. /// on [`Address`] for details.
pub trait NetworkValidation: sealed::NetworkValidation + Sync + Send + Sized + Unpin + Copy { pub trait NetworkValidation:
sealed::NetworkValidation + Sync + Send + Sized + Unpin + Copy
{
/// Indicates whether this `NetworkValidation` is `NetworkChecked` or not. /// Indicates whether this `NetworkValidation` is `NetworkChecked` or not.
const IS_CHECKED: bool; const IS_CHECKED: bool;
} }

View File

@ -83,11 +83,8 @@ fn psbt_sign_taproot() {
// //
// Step 1: create psbt for key path spend. // Step 1: create psbt for key path spend.
// //
let mut psbt_key_path_spend = create_psbt_for_taproot_key_path_spend( let mut psbt_key_path_spend =
address, create_psbt_for_taproot_key_path_spend(address, to_address, tree.clone());
to_address,
tree.clone(),
);
// //
// Step 2: sign psbt. // Step 2: sign psbt.

View File

@ -696,7 +696,7 @@ mod test {
fn witness_from_array_impl() { fn witness_from_array_impl() {
const DATA_1: [u8; 3] = [1, 2, 3]; const DATA_1: [u8; 3] = [1, 2, 3];
const DATA_2: [u8; 3] = [4, 5, 6]; const DATA_2: [u8; 3] = [4, 5, 6];
let witness = Witness::from_slice(&[DATA_1, DATA_2]); let witness = Witness::from_slice(&[DATA_1, DATA_2]);
let witness_from_array_ref = Witness::from(&[DATA_1, DATA_2]); let witness_from_array_ref = Witness::from(&[DATA_1, DATA_2]);
let witness_from_array_of_refs = Witness::from([&DATA_1, &DATA_2]); let witness_from_array_of_refs = Witness::from([&DATA_1, &DATA_2]);