Skip to content

Commit e3e28cd

Browse files
authored
Rollup merge of rust-lang#49102 - glandium:decimal, r=aturon
Remove core::fmt::num::Decimal Before ebf9e1a, it was used for Display::fmt, but ebf9e1a replaced that with a faster implementation, and nothing else uses it.
2 parents 79224ae + 9e62681 commit e3e28cd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/libcore/fmt/num.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ struct Binary;
105105
#[derive(Clone, PartialEq)]
106106
struct Octal;
107107

108-
/// A decimal (base 10) radix
109-
#[derive(Clone, PartialEq)]
110-
struct Decimal;
111-
112108
/// A hexadecimal (base 16) radix, formatted with lower-case characters
113109
#[derive(Clone, PartialEq)]
114110
struct LowerHex;
@@ -134,7 +130,6 @@ macro_rules! radix {
134130

135131
radix! { Binary, 2, "0b", x @ 0 ... 1 => b'0' + x }
136132
radix! { Octal, 8, "0o", x @ 0 ... 7 => b'0' + x }
137-
radix! { Decimal, 10, "", x @ 0 ... 9 => b'0' + x }
138133
radix! { LowerHex, 16, "0x", x @ 0 ... 9 => b'0' + x,
139134
x @ 10 ... 15 => b'a' + (x - 10) }
140135
radix! { UpperHex, 16, "0x", x @ 0 ... 9 => b'0' + x,

0 commit comments

Comments
 (0)