Skip to content

Commit 9baa6c4

Browse files
committed
Merge rust-bitcoin#5061: units: Fix lint warnings
b3cef38 units: Add semicolon (Tobin C. Harding) cdc0675 units: Feature gate REVERSE (Tobin C. Harding) Pull request description: Do a couple of trivial lint fixes. Goodness me, see rust-bitcoin#5060 for why this stuff got past CI. ACKs for top commit: apoelstra: ACK b3cef38; successfully ran local tests Tree-SHA512: cfd874d84f1b036280ff9ed93946c0325fc95b82291235a7d877a01e28c666082c9bb32399bb1e5552278b5555c836f36d530545016c8b13de53602311552d82
2 parents 5e75afe + b3cef38 commit 9baa6c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

primitives/src/hash_types/generic.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// follow the DRY principle without using macros.
99

1010
const LEN: usize = <Inner as hashes::Hash>::LEN;
11+
#[cfg(feature = "hex")]
1112
const REVERSE: bool = <Inner as hashes::Hash>::DISPLAY_BACKWARD;
1213

1314
impl HashType {
@@ -53,7 +54,7 @@ impl str::FromStr for HashType {
5354
impl fmt::Debug for HashType {
5455
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5556
for byte in self.as_byte_array() {
56-
write!(f, "{:02x}", byte)?
57+
write!(f, "{:02x}", byte)?;
5758
}
5859
Ok(())
5960
}

0 commit comments

Comments
 (0)