We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a3f3aa commit 7f06e91Copy full SHA for 7f06e91
src/util/taproot.rs
@@ -857,6 +857,18 @@ impl fmt::Display for LeafVersion {
857
}
858
859
860
+impl fmt::LowerHex for LeafVersion {
861
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
862
+ fmt::LowerHex::fmt(&self.into_consensus(), f)
863
+ }
864
+}
865
+
866
+impl fmt::UpperHex for LeafVersion {
867
868
+ fmt::UpperHex::fmt(&self.into_consensus(), f)
869
870
871
872
#[cfg(feature = "serde")]
873
#[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
874
impl ::serde::Serialize for LeafVersion {
0 commit comments