Fix ugly rustfmt

Fix some ugly formatting introduced by the fmt bot recently.

Whitespace only, no logic changes.
This commit is contained in:
Tobin C. Harding 2024-10-30 16:14:43 +11:00
parent 3c16ed05c9
commit 57769f5f28
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
2 changed files with 6 additions and 8 deletions

View File

@ -36,11 +36,9 @@ impl fmt::LowerHex for CompactTarget {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::LowerHex::fmt(&self.0, f) }
}
impl_to_hex_from_lower_hex!(CompactTarget, |compact_target: &CompactTarget| 8 - compact_target
.0
.leading_zeros()
as usize
/ 4);
impl_to_hex_from_lower_hex!(CompactTarget, |compact_target: &CompactTarget| {
8 - compact_target.0.leading_zeros() as usize / 4
});
impl fmt::UpperHex for CompactTarget {
#[inline]

View File

@ -231,9 +231,9 @@ impl fmt::Display for Sequence {
impl fmt::LowerHex for Sequence {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::LowerHex::fmt(&self.0, f) }
}
impl_to_hex_from_lower_hex!(Sequence, |sequence: &Sequence| 8 - sequence.0.leading_zeros()
as usize
/ 4);
impl_to_hex_from_lower_hex!(Sequence, |sequence: &Sequence| {
8 - sequence.0.leading_zeros() as usize / 4
});
impl fmt::UpperHex for Sequence {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::UpperHex::fmt(&self.0, f) }