Skip to content

Commit e7eaf5b

Browse files
committed
always use hyphenated format regardless of flags
1 parent 52197cd commit e7eaf5b

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/fmt.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,14 @@ impl fmt::Display for Variant {
4242

4343
impl fmt::LowerHex for Uuid {
4444
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
45-
if f.alternate() {
46-
fmt::LowerHex::fmt(self.as_simple(), f)
47-
} else {
48-
fmt::LowerHex::fmt(self.as_hyphenated(), f)
49-
}
45+
fmt::LowerHex::fmt(self.as_hyphenated(), f)
5046
}
5147
}
5248

5349
impl fmt::UpperHex for Uuid {
5450
#[inline]
5551
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
56-
if f.alternate() {
57-
fmt::UpperHex::fmt(self.as_simple(), f)
58-
} else {
59-
fmt::UpperHex::fmt(self.as_hyphenated(), f)
60-
}
52+
fmt::UpperHex::fmt(self.as_hyphenated(), f)
6153
}
6254
}
6355

0 commit comments

Comments
 (0)