@@ -1748,7 +1748,7 @@ impl ToTokens for GameInputReceiver {
1748
1748
quote ! {
1749
1749
{
1750
1750
let stats = & data. stats. #path;
1751
-
1751
+
1752
1752
( f64 :: from( #sum) / if #sum_bottom == 0 { 1. } else { f64 :: from( #sum_bottom) } )
1753
1753
}
1754
1754
}
@@ -1845,15 +1845,15 @@ impl ToTokens for GameInputReceiver {
1845
1845
quote ! {
1846
1846
{
1847
1847
let stats = & last. 1 . stats. #path;
1848
-
1848
+
1849
1849
( f64 :: from( #sum) * 100. / if #sum_bottom == 0 { 1. } else { f64 :: from( #sum_bottom) } )
1850
1850
}
1851
1851
}
1852
1852
} else {
1853
1853
quote ! {
1854
1854
{
1855
1855
let stats = & last. 1 . stats. #path;
1856
-
1856
+
1857
1857
( f64 :: from( #sum) / if #sum_bottom == 0 { 1. } else { f64 :: from( #sum_bottom) } )
1858
1858
}
1859
1859
}
@@ -1950,15 +1950,15 @@ impl ToTokens for GameInputReceiver {
1950
1950
quote ! {
1951
1951
{
1952
1952
let stats = & first. 1 . stats. #path;
1953
-
1953
+
1954
1954
( f64 :: from( #sum) * 100. / if #sum_bottom == 0 { 1. } else { f64 :: from( #sum_bottom) } )
1955
1955
}
1956
1956
}
1957
1957
} else {
1958
1958
quote ! {
1959
1959
{
1960
1960
let stats = & first. 1 . stats. #path;
1961
-
1961
+
1962
1962
( f64 :: from( #sum) / if #sum_bottom == 0 { 1. } else { f64 :: from( #sum_bottom) } )
1963
1963
}
1964
1964
}
@@ -2487,7 +2487,7 @@ impl ToTokens for GameInputReceiver {
2487
2487
{
2488
2488
let stats_new = & data_new. stats. #path;
2489
2489
let stats_old = & data_old. stats. #path;
2490
-
2490
+
2491
2491
crate :: extras:: percent:: #struct_name ( crate :: canvas:: diff:: Diff :: diff(
2492
2492
& ( #sum_new * 100 / if #sum_bottom_new == 0 { 1 } else { #sum_bottom_new } ) ,
2493
2493
& ( #sum_old * 100 / if #sum_bottom_old == 0 { 1 } else { #sum_bottom_old } ) ,
@@ -2499,7 +2499,7 @@ impl ToTokens for GameInputReceiver {
2499
2499
{
2500
2500
let stats_new = & data_new. stats. #path;
2501
2501
let stats_old = & data_old. stats. #path;
2502
-
2502
+
2503
2503
crate :: canvas:: diff:: Diff :: diff(
2504
2504
& ( f64 :: from( #sum_new) / if #sum_bottom_new == 0 { 1. } else { f64 :: from( #sum_bottom_new) } ) ,
2505
2505
& ( f64 :: from( #sum_old) / if #sum_bottom_old == 0 { 1. } else { f64 :: from( #sum_bottom_old) } ) ,
@@ -2684,13 +2684,13 @@ impl ToTokens for GameInputReceiver {
2684
2684
let ( new, old) = {
2685
2685
let stats_new = & data_new. stats. #path;
2686
2686
let stats_old = & data_old. stats. #path;
2687
-
2687
+
2688
2688
let sum_bottom_new = #sum_bottom_new;
2689
2689
let sum_bottom_old = #sum_bottom_old;
2690
-
2690
+
2691
2691
let new = crate :: extras:: percent:: #struct_name ( #sum_new * 100 / if sum_bottom_new == 0 { 1 } else { sum_bottom_new } ) ;
2692
2692
let old = crate :: extras:: percent:: #struct_name ( #sum_old * 100 / if sum_bottom_old == 0 { 1 } else { sum_bottom_old } ) ;
2693
-
2693
+
2694
2694
( new, old)
2695
2695
} ;
2696
2696
}
@@ -2699,13 +2699,13 @@ impl ToTokens for GameInputReceiver {
2699
2699
let ( new, old) = {
2700
2700
let stats_new = & data_new. stats. #path;
2701
2701
let stats_old = & data_old. stats. #path;
2702
-
2702
+
2703
2703
let sum_bottom_new = #sum_bottom_new;
2704
2704
let sum_bottom_old = #sum_bottom_old;
2705
-
2705
+
2706
2706
let new = f64 :: from( #sum_new) / if sum_bottom_new == 0 { 1. } else { f64 :: from( sum_bottom_new) } ;
2707
2707
let old = f64 :: from( #sum_old) / if sum_bottom_old == 0 { 1. } else { f64 :: from( sum_bottom_old) } ;
2708
-
2708
+
2709
2709
( new, old)
2710
2710
} ;
2711
2711
}
0 commit comments