From f3b12195a000ed2c1c248e0436a7b12616aa7aec Mon Sep 17 00:00:00 2001 From: Felix Hekhorn Date: Tue, 10 Sep 2024 11:03:03 +0300 Subject: [PATCH] rust: Remove leading underscore for used vars --- .../unpolarized/spacelike/as1.rs | 10 +++++----- .../unpolarized/spacelike/as2.rs | 20 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/crates/ekore/src/operator_matrix_elements/unpolarized/spacelike/as1.rs b/crates/ekore/src/operator_matrix_elements/unpolarized/spacelike/as1.rs index c2409d2d9..79b866da8 100644 --- a/crates/ekore/src/operator_matrix_elements/unpolarized/spacelike/as1.rs +++ b/crates/ekore/src/operator_matrix_elements/unpolarized/spacelike/as1.rs @@ -55,23 +55,23 @@ pub fn A_gg(_c: &mut Cache, _nf: u8, L: f64) -> Complex { } /// Compute the |NLO| singlet |OME|. -pub fn A_singlet(c: &mut Cache, _nf: u8, L: f64) -> [[Complex; 3]; 3] { +pub fn A_singlet(c: &mut Cache, nf: u8, L: f64) -> [[Complex; 3]; 3] { [ - [A_gg(c, _nf, L), Complex::::zero(), A_gh(c, _nf, L)], + [A_gg(c, nf, L), Complex::::zero(), A_gh(c, nf, L)], [ Complex::::zero(), Complex::::zero(), Complex::::zero(), ], - [A_hg(c, _nf, L), Complex::::zero(), A_hh(c, _nf, L)], + [A_hg(c, nf, L), Complex::::zero(), A_hh(c, nf, L)], ] } /// Compute the |NLO| non-singlet |OME|. -pub fn A_ns(c: &mut Cache, _nf: u8, L: f64) -> [[Complex; 2]; 2] { +pub fn A_ns(c: &mut Cache, nf: u8, L: f64) -> [[Complex; 2]; 2] { [ [Complex::::zero(), Complex::::zero()], - [Complex::::zero(), A_hh(c, _nf, L)], + [Complex::::zero(), A_hh(c, nf, L)], ] } diff --git a/crates/ekore/src/operator_matrix_elements/unpolarized/spacelike/as2.rs b/crates/ekore/src/operator_matrix_elements/unpolarized/spacelike/as2.rs index e6a874f19..686260be8 100644 --- a/crates/ekore/src/operator_matrix_elements/unpolarized/spacelike/as2.rs +++ b/crates/ekore/src/operator_matrix_elements/unpolarized/spacelike/as2.rs @@ -255,16 +255,16 @@ pub fn A_gg(c: &mut Cache, _nf: u8, L: f64) -> Complex { } /// |NNLO| singlet |OME| -pub fn A_singlet(c: &mut Cache, _nf: u8, L: f64, is_msbar: bool) -> [[Complex; 3]; 3] { - let A_hq_2 = A_hq_ps(c, _nf, L); - let A_qq_2 = A_qq_ns(c, _nf, L); - let mut A_hg_2 = A_hg(c, _nf, L); - let A_gq_2 = A_gq(c, _nf, L); - let mut A_gg_2 = A_gg(c, _nf, L); +pub fn A_singlet(c: &mut Cache, nf: u8, L: f64, is_msbar: bool) -> [[Complex; 3]; 3] { + let A_hq_2 = A_hq_ps(c, nf, L); + let A_qq_2 = A_qq_ns(c, nf, L); + let mut A_hg_2 = A_hg(c, nf, L); + let A_gq_2 = A_gq(c, nf, L); + let mut A_gg_2 = A_gg(c, nf, L); if is_msbar { - A_hg_2 -= 2.0 * 4.0 * CF * as1::A_hg(c, _nf, 1.0); - A_gg_2 -= 2.0 * 4.0 * CF * as1::A_gg(c, _nf, 1.0); + A_hg_2 -= 2.0 * 4.0 * CF * as1::A_hg(c, nf, 1.0); + A_gg_2 -= 2.0 * 4.0 * CF * as1::A_gg(c, nf, 1.0); } [ @@ -275,9 +275,9 @@ pub fn A_singlet(c: &mut Cache, _nf: u8, L: f64, is_msbar: bool) -> [[Complex [[Complex; 2]; 2] { +pub fn A_ns(c: &mut Cache, nf: u8, L: f64) -> [[Complex; 2]; 2] { [ - [A_qq_ns(c, _nf, L), Complex::::zero()], + [A_qq_ns(c, nf, L), Complex::::zero()], [Complex::::zero(), Complex::::zero()], ] }