Skip to content

Commit

Permalink
always use hyphenated format regardless of flags
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Jan 31, 2023
1 parent 52197cd commit e7eaf5b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,14 @@ impl fmt::Display for Variant {

impl fmt::LowerHex for Uuid {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
if f.alternate() {
fmt::LowerHex::fmt(self.as_simple(), f)
} else {
fmt::LowerHex::fmt(self.as_hyphenated(), f)
}
fmt::LowerHex::fmt(self.as_hyphenated(), f)
}
}

impl fmt::UpperHex for Uuid {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
if f.alternate() {
fmt::UpperHex::fmt(self.as_simple(), f)
} else {
fmt::UpperHex::fmt(self.as_hyphenated(), f)
}
fmt::UpperHex::fmt(self.as_hyphenated(), f)
}
}

Expand Down

0 comments on commit e7eaf5b

Please sign in to comment.