File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
library/core/src/num/flt2dec/strategy Expand file tree Collapse file tree 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>(
253253 let delta1frac = delta1 & ( ( 1 << e) - 1 ) ;
254254
255255 // render integral parts, while checking for the accuracy at each step.
256- let mut kappa = max_kappa as i16 ;
257256 let mut ten_kappa = max_ten_kappa; // 10^kappa
258257 let mut remainder = plus1int; // digits yet to be rendered
259258 loop {
@@ -290,12 +289,10 @@ pub fn format_shortest_opt<'a>(
290289 // the exact number of digits is `max_kappa + 1` as `plus1 < 10^(max_kappa+1)`.
291290 if i > max_kappa as usize {
292291 debug_assert_eq ! ( ten_kappa, 1 ) ;
293- debug_assert_eq ! ( kappa, 0 ) ;
294292 break ;
295293 }
296294
297295 // restore invariants
298- kappa -= 1 ;
299296 ten_kappa /= 10 ;
300297 remainder = r;
301298 }
@@ -338,7 +335,6 @@ pub fn format_shortest_opt<'a>(
338335 }
339336
340337 // restore invariants
341- kappa -= 1 ;
342338 remainder = r;
343339 }
344340
You can’t perform that action at this time.
0 commit comments