File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -279,13 +279,13 @@ macro_rules! float_trait_impl {
279279 match c. to_digit( radix) {
280280 Some ( digit) => {
281281 // shift significand one digit left
282- sig = sig * ( radix as $t) ;
282+ sig *= radix as $t;
283283
284284 // add/subtract current digit depending on sign
285285 if is_positive {
286- sig = sig + ( ( digit as isize ) as $t) ;
286+ sig += ( digit as isize ) as $t;
287287 } else {
288- sig = sig - ( ( digit as isize ) as $t) ;
288+ sig -= ( digit as isize ) as $t;
289289 }
290290
291291 // Detect overflow by comparing to last value, except
@@ -327,7 +327,7 @@ macro_rules! float_trait_impl {
327327 match c. to_digit( radix) {
328328 Some ( digit) => {
329329 // Decrease power one order of magnitude
330- power = power / ( radix as $t) ;
330+ power /= radix as $t;
331331 // add/subtract current digit depending on sign
332332 sig = if is_positive {
333333 sig + ( digit as $t) * power
You can’t perform that action at this time.
0 commit comments