2025-04-13 automated rustfmt nightly

This commit is contained in:
Fmt Bot 2025-04-13 02:50:07 +00:00 committed by github-actions[bot]
parent e2149ec4e9
commit 19c5fcc78f
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)
/// 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.
const IS_CHECKED: bool;
}

View File

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

View File

@ -696,7 +696,7 @@ mod test {
fn witness_from_array_impl() {
const DATA_1: [u8; 3] = [1, 2, 3];
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_of_refs = Witness::from([&DATA_1, &DATA_2]);