Fix ugly rustfmt
Fix some ugly formatting introduced by the fmt bot recently. Whitespace only, no logic changes.
This commit is contained in:
parent
3c16ed05c9
commit
57769f5f28
|
@ -36,11 +36,9 @@ impl fmt::LowerHex for CompactTarget {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::LowerHex::fmt(&self.0, f) }
|
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
|
impl_to_hex_from_lower_hex!(CompactTarget, |compact_target: &CompactTarget| {
|
||||||
.0
|
8 - compact_target.0.leading_zeros() as usize / 4
|
||||||
.leading_zeros()
|
});
|
||||||
as usize
|
|
||||||
/ 4);
|
|
||||||
|
|
||||||
impl fmt::UpperHex for CompactTarget {
|
impl fmt::UpperHex for CompactTarget {
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
|
@ -231,9 +231,9 @@ impl fmt::Display for Sequence {
|
||||||
impl fmt::LowerHex for Sequence {
|
impl fmt::LowerHex for Sequence {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::LowerHex::fmt(&self.0, f) }
|
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()
|
impl_to_hex_from_lower_hex!(Sequence, |sequence: &Sequence| {
|
||||||
as usize
|
8 - sequence.0.leading_zeros() as usize / 4
|
||||||
/ 4);
|
});
|
||||||
|
|
||||||
impl fmt::UpperHex for Sequence {
|
impl fmt::UpperHex for Sequence {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::UpperHex::fmt(&self.0, f) }
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::UpperHex::fmt(&self.0, f) }
|
||||||
|
|
Loading…
Reference in New Issue