File tree 1 file changed +0
-4
lines changed
library/core/src/num/flt2dec/strategy
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,6 @@ pub fn format_shortest_opt<'a>(
253
253
let delta1frac = delta1 & ( ( 1 << e) - 1 ) ;
254
254
255
255
// render integral parts, while checking for the accuracy at each step.
256
- let mut kappa = max_kappa as i16 ;
257
256
let mut ten_kappa = max_ten_kappa; // 10^kappa
258
257
let mut remainder = plus1int; // digits yet to be rendered
259
258
loop {
@@ -290,12 +289,10 @@ pub fn format_shortest_opt<'a>(
290
289
// the exact number of digits is `max_kappa + 1` as `plus1 < 10^(max_kappa+1)`.
291
290
if i > max_kappa as usize {
292
291
debug_assert_eq ! ( ten_kappa, 1 ) ;
293
- debug_assert_eq ! ( kappa, 0 ) ;
294
292
break ;
295
293
}
296
294
297
295
// restore invariants
298
- kappa -= 1 ;
299
296
ten_kappa /= 10 ;
300
297
remainder = r;
301
298
}
@@ -338,7 +335,6 @@ pub fn format_shortest_opt<'a>(
338
335
}
339
336
340
337
// restore invariants
341
- kappa -= 1 ;
342
338
remainder = r;
343
339
}
344
340
You can’t perform that action at this time.
0 commit comments