We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76342d9 commit db2efb0Copy full SHA for db2efb0
core/src/fmt/num.rs
@@ -31,22 +31,11 @@ macro_rules! impl_int {
31
})*
32
)
33
}
34
-macro_rules! impl_uint {
35
- ($($t:ident)*) => (
36
- $(impl DisplayInt for $t {
37
- fn zero() -> Self { 0 }
38
- fn from_u8(u: u8) -> Self { u as Self }
39
- fn to_u8(&self) -> u8 { *self as u8 }
40
- #[cfg(not(any(target_pointer_width = "64", target_arch = "wasm32")))]
41
- fn to_u32(&self) -> u32 { *self as u32 }
42
- fn to_u64(&self) -> u64 { *self as u64 }
43
- fn to_u128(&self) -> u128 { *self as u128 }
44
- })*
45
- )
46
-}
47
48
-impl_int! { i8 i16 i32 i64 i128 isize }
49
-impl_uint! { u8 u16 u32 u64 u128 usize }
+impl_int! {
+ i8 i16 i32 i64 i128 isize
+ u8 u16 u32 u64 u128 usize
+}
50
51
/// A type that represents a specific radix
52
///
0 commit comments