Skip to content

Commit eaeee0a

Browse files
committed
chore: fmt
1 parent 87a6b9a commit eaeee0a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

api/macros/src/game/mod.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ impl ToTokens for GameInputReceiver {
17481748
quote! {
17491749
{
17501750
let stats = &data.stats.#path;
1751-
1751+
17521752
(f64::from(#sum) / if #sum_bottom == 0 { 1. } else { f64::from(#sum_bottom) })
17531753
}
17541754
}
@@ -1845,15 +1845,15 @@ impl ToTokens for GameInputReceiver {
18451845
quote! {
18461846
{
18471847
let stats = &last.1.stats.#path;
1848-
1848+
18491849
(f64::from(#sum) * 100. / if #sum_bottom == 0 { 1. } else { f64::from(#sum_bottom) })
18501850
}
18511851
}
18521852
} else {
18531853
quote! {
18541854
{
18551855
let stats = &last.1.stats.#path;
1856-
1856+
18571857
(f64::from(#sum) / if #sum_bottom == 0 { 1. } else { f64::from(#sum_bottom) })
18581858
}
18591859
}
@@ -1950,15 +1950,15 @@ impl ToTokens for GameInputReceiver {
19501950
quote! {
19511951
{
19521952
let stats = &first.1.stats.#path;
1953-
1953+
19541954
(f64::from(#sum) * 100. / if #sum_bottom == 0 { 1. } else { f64::from(#sum_bottom) })
19551955
}
19561956
}
19571957
} else {
19581958
quote! {
19591959
{
19601960
let stats = &first.1.stats.#path;
1961-
1961+
19621962
(f64::from(#sum) / if #sum_bottom == 0 { 1. } else { f64::from(#sum_bottom) })
19631963
}
19641964
}
@@ -2487,7 +2487,7 @@ impl ToTokens for GameInputReceiver {
24872487
{
24882488
let stats_new = &data_new.stats.#path;
24892489
let stats_old = &data_old.stats.#path;
2490-
2490+
24912491
crate::extras::percent::#struct_name (crate::canvas::diff::Diff::diff(
24922492
&(#sum_new * 100 / if #sum_bottom_new == 0 { 1 } else { #sum_bottom_new }),
24932493
&(#sum_old * 100 / if #sum_bottom_old == 0 { 1 } else { #sum_bottom_old }),
@@ -2499,7 +2499,7 @@ impl ToTokens for GameInputReceiver {
24992499
{
25002500
let stats_new = &data_new.stats.#path;
25012501
let stats_old = &data_old.stats.#path;
2502-
2502+
25032503
crate::canvas::diff::Diff::diff(
25042504
&(f64::from(#sum_new) / if #sum_bottom_new == 0 { 1. } else { f64::from(#sum_bottom_new) }),
25052505
&(f64::from(#sum_old) / if #sum_bottom_old == 0 { 1. } else { f64::from(#sum_bottom_old) }),
@@ -2684,13 +2684,13 @@ impl ToTokens for GameInputReceiver {
26842684
let (new, old) = {
26852685
let stats_new = &data_new.stats.#path;
26862686
let stats_old = &data_old.stats.#path;
2687-
2687+
26882688
let sum_bottom_new = #sum_bottom_new;
26892689
let sum_bottom_old = #sum_bottom_old;
2690-
2690+
26912691
let new = crate::extras::percent::#struct_name (#sum_new * 100 / if sum_bottom_new == 0 { 1 } else { sum_bottom_new });
26922692
let old = crate::extras::percent::#struct_name (#sum_old * 100 / if sum_bottom_old == 0 { 1 } else { sum_bottom_old });
2693-
2693+
26942694
(new, old)
26952695
};
26962696
}
@@ -2699,13 +2699,13 @@ impl ToTokens for GameInputReceiver {
26992699
let (new, old) = {
27002700
let stats_new = &data_new.stats.#path;
27012701
let stats_old = &data_old.stats.#path;
2702-
2702+
27032703
let sum_bottom_new = #sum_bottom_new;
27042704
let sum_bottom_old = #sum_bottom_old;
2705-
2705+
27062706
let new = f64::from(#sum_new) / if sum_bottom_new == 0 { 1. } else { f64::from(sum_bottom_new) };
27072707
let old = f64::from(#sum_old) / if sum_bottom_old == 0 { 1. } else { f64::from(sum_bottom_old) };
2708-
2708+
27092709
(new, old)
27102710
};
27112711
}

0 commit comments

Comments
 (0)