mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 19:24:57 +08:00
Fix format to recommended by clippy
This commit is contained in:
1 parent
7ba95567a2
commit
248a5b64bb
1 file changed
+4
-4
+4
-4
@@ -247,11 +247,11 @@ impl CFormatSpec {
|
||||
let mut exponent = 0;
|
||||
loop {
|
||||
if fraction >= 10.0 {
|
||||
fraction = fraction / 10.0;
|
||||
exponent = exponent + 1;
|
||||
fraction /= 10.0;
|
||||
exponent += 1;
|
||||
} else if fraction < 1.0 && fraction > 0.0 {
|
||||
fraction = fraction * 10.0;
|
||||
exponent = exponent - 1;
|
||||
fraction *= 10.0;
|
||||
exponent -= 1;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user