Skip to content

Commit 84ec14a

Browse files
committed
Fix some mistakes
1 parent 7cfeeb7 commit 84ec14a

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

library/core/src/fmt/nofloat.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ use crate::fmt::{Debug, Formatter, Result};
22

33
macro_rules! floating {
44
($($ty:ident)*) => (
5-
$(
6-
#[stable(feature = "rust1", since = "1.0.0")]
7-
impl Debug for $ty {
8-
#[inline]
9-
fn fmt(&self, _fmt: &mut Formatter<'_>) -> Result {
10-
panic!("floating point fmt support is turned off");
5+
$(
6+
#[stable(feature = "rust1", since = "1.0.0")]
7+
impl Debug for $ty {
8+
#[inline]
9+
fn fmt(&self, _fmt: &mut Formatter<'_>) -> Result {
10+
panic!("floating point fmt support is turned off");
11+
}
1112
}
12-
})*
13+
)*
1314
)
1415
}
1516

library/core/src/fmt/num.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ integer! { i64, u64 }
169169
integer! { i128, u128 }
170170

171171
macro_rules! impl_Debug {
172-
($($T:ident)*) => {$(
172+
($($T:ident)*) => (
173+
$(
173174
#[stable(feature = "rust1", since = "1.0.0")]
174175
impl fmt::Debug for $T {
175176
#[inline]
@@ -182,8 +183,8 @@ macro_rules! impl_Debug {
182183
fmt::Display::fmt(self, f)
183184
}
184185
}
185-
}
186-
)*};
186+
})*
187+
)
187188
}
188189

189190
// 2 digit decimal look up table

0 commit comments

Comments
 (0)