Run the formatter

This commit is contained in:
Tobin C. Harding 2024-10-31 09:52:22 +11:00
parent 77a8f076b8
commit 851e4111ec
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
4 changed files with 7 additions and 5 deletions

View File

@ -803,8 +803,8 @@ impl Address<NetworkUnchecked> {
/// Parse a bech32 Address string
pub fn from_bech32_str(s: &str) -> Result<Address<NetworkUnchecked>, Bech32Error> {
let (hrp, witness_version, data) = bech32::segwit::decode(s)
.map_err(|e| Bech32Error::ParseBech32(ParseBech32Error(e)))?;
let (hrp, witness_version, data) =
bech32::segwit::decode(s).map_err(|e| Bech32Error::ParseBech32(ParseBech32Error(e)))?;
let version = WitnessVersion::try_from(witness_version.to_u8())?;
let program = WitnessProgram::new(version, &data)
.expect("bech32 guarantees valid program length for witness");

View File

@ -87,7 +87,10 @@ pub mod locktime {
//! whether bit 22 of the `u32` consensus value is set.
/// Re-export everything from the `primitives::locktime::relative` module.
pub use primitives::locktime::relative::{Height, LockTime, Time, TimeOverflowError, DisabledLockTimeError, IncompatibleHeightError, IncompatibleTimeError};
pub use primitives::locktime::relative::{
DisabledLockTimeError, Height, IncompatibleHeightError, IncompatibleTimeError,
LockTime, Time, TimeOverflowError,
};
}
}

View File

@ -1,4 +1,3 @@
// SPDX-License-Identifier: CC0-1.0
//! SipHash 2-4 implementation.

View File

@ -51,7 +51,7 @@ pub use units::amount::{Amount, SignedAmount};
pub use units::{
block::{BlockHeight, BlockInterval},
fee_rate::FeeRate,
weight::Weight
weight::Weight,
};
#[doc(inline)]