From 07ef78ea9679b9b5843254b448e1168dcf30db4f Mon Sep 17 00:00:00 2001 From: Fmt Bot Date: Sun, 2 Jun 2024 01:07:10 +0000 Subject: [PATCH] 2024-06-02 automated rustfmt nightly --- bitcoin/src/address/mod.rs | 6 +++--- hashes/src/hkdf.rs | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bitcoin/src/address/mod.rs b/bitcoin/src/address/mod.rs index c16c25d2f..9eee27a6e 100644 --- a/bitcoin/src/address/mod.rs +++ b/bitcoin/src/address/mod.rs @@ -245,17 +245,17 @@ pub enum AddressData { /// Data encoded by a P2PKH address. P2pkh { /// The pubkey hash used to encumber outputs to this address. - pubkey_hash: PubkeyHash + pubkey_hash: PubkeyHash, }, /// Data encoded by a P2SH address. P2sh { /// The script hash used to encumber outputs to this address. - script_hash: ScriptHash + script_hash: ScriptHash, }, /// Data encoded by a Segwit address. Segwit { /// The witness program used to encumber outputs to this address. - witness_program: WitnessProgram + witness_program: WitnessProgram, }, } diff --git a/hashes/src/hkdf.rs b/hashes/src/hkdf.rs index a1b6c730a..e22418a94 100644 --- a/hashes/src/hkdf.rs +++ b/hashes/src/hkdf.rs @@ -5,12 +5,11 @@ //! Implementation based on RFC5869, but the interface is scoped //! to BIP324's requirements. -use core::fmt; - #[cfg(all(feature = "alloc", not(feature = "std")))] use alloc::vec; #[cfg(all(feature = "alloc", not(feature = "std")))] use alloc::vec::Vec; +use core::fmt; use crate::{Hash, HashEngine, Hmac, HmacEngine};