Skip to content

Commit 6789492

Browse files
committed
apply rustfmt to pset/raw.rs
1 parent 8ae550b commit 6789492

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

src/pset/raw.rs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ use crate::hex;
2727
use crate::VarInt;
2828
/// A PSET key in its raw byte form.
2929
#[derive(Debug, PartialEq, Hash, Eq, Clone, Ord, PartialOrd)]
30-
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize), serde(crate = "actual_serde"))]
30+
#[cfg_attr(
31+
feature = "serde",
32+
derive(Serialize, Deserialize),
33+
serde(crate = "actual_serde")
34+
)]
3135
pub struct Key {
3236
/// The type of this PSET key.
3337
pub type_value: u8,
@@ -50,7 +54,11 @@ impl Key {
5054

5155
/// A PSET key-value pair in its raw byte form.
5256
#[derive(Debug, PartialEq)]
53-
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize), serde(crate = "actual_serde"))]
57+
#[cfg_attr(
58+
feature = "serde",
59+
derive(Serialize, Deserialize),
60+
serde(crate = "actual_serde")
61+
)]
5462
pub struct Pair {
5563
/// The key of this key-value pair.
5664
pub key: Key,
@@ -64,7 +72,11 @@ pub type ProprietaryType = u8;
6472

6573
/// Proprietary keys (i.e. keys starting with 0xFC byte) with their internal
6674
/// structure according to BIP 174.
67-
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize), serde(crate = "actual_serde"))]
75+
#[cfg_attr(
76+
feature = "serde",
77+
derive(Serialize, Deserialize),
78+
serde(crate = "actual_serde")
79+
)]
6880
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
6981
pub struct ProprietaryKey<Subtype = ProprietaryType>
7082
where

0 commit comments

Comments
 (0)