Skip to content

Commit 248a5b6

Browse files
committed
Fix format to recommended by clippy
1 parent 7ba9556 commit 248a5b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vm/src/cformat.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,11 @@ impl CFormatSpec {
247247
let mut exponent = 0;
248248
loop {
249249
if fraction >= 10.0 {
250-
fraction = fraction / 10.0;
251-
exponent = exponent + 1;
250+
fraction /= 10.0;
251+
exponent += 1;
252252
} else if fraction < 1.0 && fraction > 0.0 {
253-
fraction = fraction * 10.0;
254-
exponent = exponent - 1;
253+
fraction *= 10.0;
254+
exponent -= 1;
255255
} else {
256256
break;
257257
}

0 commit comments

Comments
 (0)