mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Fix format to recommended by clippy
This commit is contained in:
@@ -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