2024-06-02 automated rustfmt nightly

This commit is contained in:
Fmt Bot 2024-06-02 01:07:10 +00:00 committed by github-actions[bot]
parent ee68e80315
commit 07ef78ea96
2 changed files with 4 additions and 5 deletions

View File

@ -245,17 +245,17 @@ pub enum AddressData {
/// Data encoded by a P2PKH address. /// Data encoded by a P2PKH address.
P2pkh { P2pkh {
/// The pubkey hash used to encumber outputs to this address. /// The pubkey hash used to encumber outputs to this address.
pubkey_hash: PubkeyHash pubkey_hash: PubkeyHash,
}, },
/// Data encoded by a P2SH address. /// Data encoded by a P2SH address.
P2sh { P2sh {
/// The script hash used to encumber outputs to this address. /// The script hash used to encumber outputs to this address.
script_hash: ScriptHash script_hash: ScriptHash,
}, },
/// Data encoded by a Segwit address. /// Data encoded by a Segwit address.
Segwit { Segwit {
/// The witness program used to encumber outputs to this address. /// The witness program used to encumber outputs to this address.
witness_program: WitnessProgram witness_program: WitnessProgram,
}, },
} }

View File

@ -5,12 +5,11 @@
//! Implementation based on RFC5869, but the interface is scoped //! Implementation based on RFC5869, but the interface is scoped
//! to BIP324's requirements. //! to BIP324's requirements.
use core::fmt;
#[cfg(all(feature = "alloc", not(feature = "std")))] #[cfg(all(feature = "alloc", not(feature = "std")))]
use alloc::vec; use alloc::vec;
#[cfg(all(feature = "alloc", not(feature = "std")))] #[cfg(all(feature = "alloc", not(feature = "std")))]
use alloc::vec::Vec; use alloc::vec::Vec;
use core::fmt;
use crate::{Hash, HashEngine, Hmac, HmacEngine}; use crate::{Hash, HashEngine, Hmac, HmacEngine};