Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed May 30, 2024
1 parent b0ed871 commit af02fad
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ pub fn gamma_nsv(c: &mut Cache, nf: u8) -> Complex<f64> {
+ 46.18 * E2
);

let result = gamma_nsm(c, nf) + (nf as f64) * ps2;
result
gamma_nsm(c, nf) + (nf as f64) * ps2
}

/// Compute the pure-singlet quark-quark anomalous dimension.
Expand Down
8 changes: 7 additions & 1 deletion crates/ekore/src/bib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! List of References (autogenerated on 2024-04-25T18:22:43.797877).
//! List of References (autogenerated on 2024-05-30T12:57:15.459698).
#[allow(non_snake_case)]
/// The Three loop splitting functions in QCD: The Nonsinglet case
///
/// Moch, S. and Vermaseren, J. A. M. and Vogt, A.
Expand All @@ -11,6 +12,7 @@
/// DOI: [10.1016/j.nuclphysb.2004.03.030](https:dx.doi.org/10.1016/j.nuclphysb.2004.03.030)
pub fn Moch2004pa() {}

#[allow(non_snake_case)]
/// The Three-loop splitting functions in QCD: The Singlet case
///
/// Vogt, A. and Moch, S. and Vermaseren, J. A. M.
Expand All @@ -22,6 +24,7 @@ pub fn Moch2004pa() {}
/// DOI: [10.1016/j.nuclphysb.2004.04.024](https:dx.doi.org/10.1016/j.nuclphysb.2004.04.024)
pub fn Vogt2004mw() {}

#[allow(non_snake_case)]
/// Programs for computing the logarithm of the gamma function, and the digamma function, for complex argument
///
/// K.S. Kölbig
Expand All @@ -33,6 +36,7 @@ pub fn Vogt2004mw() {}
/// DOI: [https://doi.org/10.1016/0010-4655(72)90012-4](https://doi.org/10.1016/0010-4655(72)90012-4)
pub fn KOLBIG1972221() {}

#[allow(non_snake_case)]
/// Multi‐precision Laplace transform inversion
///
/// Abate, J. and Valkó, P.
Expand All @@ -44,6 +48,7 @@ pub fn KOLBIG1972221() {}
/// DOI: [10.1002/nme.995](https:dx.doi.org/10.1002/nme.995)
pub fn Abate() {}

#[allow(non_snake_case)]
/// Resummations of Transverse Momentum Distributions
///
/// Muselli, Claudio
Expand All @@ -55,6 +60,7 @@ pub fn Abate() {}
/// DOI: [10.13130/muselli-claudio_phd2017-12-01](https:dx.doi.org/10.13130/muselli-claudio_phd2017-12-01)
pub fn MuselliPhD() {}

#[allow(non_snake_case)]
/// Efficient evolution of unpolarized and polarized parton distributions with QCD-PEGASUS
///
/// Vogt, A.
Expand Down
2 changes: 1 addition & 1 deletion crates/ekore/src/harmonics/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub fn recursive_harmonic_sum(
) -> Complex<f64> {
let mut fact = Complex::zero();
for i in 1..iterations + 1 {
fact = fact + (1.0 / (n + (i as f64))).powu(weight);
fact += (1.0 / (n + (i as f64))).powu(weight);
}
base_value + fact
}
Expand Down
2 changes: 1 addition & 1 deletion crates/ekore/src/harmonics/g_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn g3(N: Complex<f64>, S1: Complex<f64>) -> Complex<f64> {
let mut g3 = Complex::zero();
for cit in CS.iter().enumerate() {
let Nj = N + (cit.0 as f64);
g3 = g3 + (*cit.1) * (ZETA2 - s(S1, N, cit.0, 1) / Nj) / Nj;
g3 += (*cit.1) * (ZETA2 - s(S1, N, cit.0, 1) / Nj) / Nj;
}
g3
}
Expand Down
3 changes: 2 additions & 1 deletion crates/make_bib.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
BIBFILE = pathlib.Path(__file__).parent / "ekore" / "refs.bib"

# A single entry
ENTRY = """/// {title}
ENTRY = """#[allow(non_snake_case)]
/// {title}
///
/// {author}
///
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ rdocs-clean = "rm -rf target/doc/"
rtest = "cargo test --workspace"
fmtcheck = "cargo fmt --all -- --check"
clippy = "cargo clippy --no-deps"
rbib = { "shell" = "python crates/make_bib.py > crates/ekore/src/bib.rs" }

[tool.pytest.ini_options]
testpaths = ['tests/', 'benchmarks/']
Expand Down

0 comments on commit af02fad

Please sign in to comment.