We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e08d569 commit 7e3fd59Copy full SHA for 7e3fd59
library/core/src/fmt/num.rs
@@ -317,10 +317,10 @@ macro_rules! impl_Exp {
317
}
318
(fmt_prec.saturating_sub(prec), prec.saturating_sub(fmt_prec))
319
320
- None => (0,0)
+ None => (0, 0)
321
};
322
for _ in 1..subtracted_precision {
323
- n/=10;
+ n /= 10;
324
exponent += 1;
325
326
if subtracted_precision != 0 {
@@ -392,7 +392,7 @@ macro_rules! impl_Exp {
392
// SAFETY: In either case, `exp_buf` is written within bounds and `exp_ptr[..len]`
393
// is contained within `exp_buf` since `len <= 3`.
394
let exp_slice = unsafe {
395
- *exp_ptr.offset(0) = if upper {b'E'} else {b'e'};
+ *exp_ptr.offset(0) = if upper { b'E' } else { b'e' };
396
let len = if exponent < 10 {
397
*exp_ptr.offset(1) = (exponent as u8) + b'0';
398
2
0 commit comments