Skip to content

Commit

Permalink
Fixed hex formatting impl
Browse files Browse the repository at this point in the history
  • Loading branch information
YohDeadfall committed Aug 27, 2024
1 parent c87903c commit 80fc372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ impl<const N: usize> Binary for RawOrdPath<N> {
impl<const N: usize> LowerHex for RawOrdPath<N> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
for b in self.as_slice() {
write!(f, "{b:0>8x}")?;
write!(f, "{b:0>2x}")?;
}
Ok(())
}
Expand All @@ -248,7 +248,7 @@ impl<const N: usize> LowerHex for RawOrdPath<N> {
impl<const N: usize> UpperHex for RawOrdPath<N> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
for b in self.as_slice() {
write!(f, "{b:0>8X}")?;
write!(f, "{b:0>2X}")?;
}
Ok(())
}
Expand Down

0 comments on commit 80fc372

Please sign in to comment.