diff --git a/src/features/bazin_fit.rs b/src/features/bazin_fit.rs index a4c77df..7456097 100644 --- a/src/features/bazin_fit.rs +++ b/src/features/bazin_fit.rs @@ -116,7 +116,7 @@ struct Params<'a, T> { external: [T; NPARAMS], } -impl<'a, T> Params<'a, T> +impl Params<'_, T> where T: LikeFloat, { diff --git a/src/features/linexp_fit.rs b/src/features/linexp_fit.rs index eea9198..8be82b8 100644 --- a/src/features/linexp_fit.rs +++ b/src/features/linexp_fit.rs @@ -114,7 +114,7 @@ struct Params<'a, T> { external: [T; NPARAMS], } -impl<'a, T> Params<'a, T> +impl Params<'_, T> where T: LikeFloat, { diff --git a/src/features/roms.rs b/src/features/roms.rs index c163503..1f3ffa2 100644 --- a/src/features/roms.rs +++ b/src/features/roms.rs @@ -76,7 +76,6 @@ where #[cfg(test)] #[allow(clippy::unreadable_literal)] #[allow(clippy::excessive_precision)] - mod tests { use super::*; use crate::extractor::FeatureExtractor; diff --git a/src/features/villar_fit.rs b/src/features/villar_fit.rs index c3d030e..ee21091 100644 --- a/src/features/villar_fit.rs +++ b/src/features/villar_fit.rs @@ -332,7 +332,7 @@ struct Params<'a, T> { external: [T; NPARAMS], } -impl<'a, T> Params<'a, T> +impl Params<'_, T> where T: LikeFloat, { diff --git a/src/lnerfc.rs b/src/lnerfc.rs index 58faefe..af59778 100644 --- a/src/lnerfc.rs +++ b/src/lnerfc.rs @@ -1,5 +1,5 @@ -/// Natural logarythm of the error function -/// Manually translated from GNU Scientific Library's log_erfc +//! Natural logarithm of the error function +//! Manually translated from GNU Scientific Library's log_erfc #[allow(clippy::excessive_precision)] const TEN_ROOT6_DBL_EPSILON: f64 = 2.4607833005759251e-02; diff --git a/src/nl_fit/mcmc.rs b/src/nl_fit/mcmc.rs index d2077c9..e738d3f 100644 --- a/src/nl_fit/mcmc.rs +++ b/src/nl_fit/mcmc.rs @@ -227,7 +227,7 @@ struct EmceeModel<'b, F, LP, const NPARAMS: usize> { upper: &'b [f32; NPARAMS], } -impl<'b, F, LP, const NPARAMS: usize> Prob for EmceeModel<'b, F, LP, NPARAMS> +impl Prob for EmceeModel<'_, F, LP, NPARAMS> where F: Fn(&Guess) -> f32, LP: Fn(&Guess) -> f32, diff --git a/src/time_series.rs b/src/time_series.rs index b2a99e4..6172339 100644 --- a/src/time_series.rs +++ b/src/time_series.rs @@ -160,7 +160,7 @@ where } } -impl<'a, T> From> for DataSample<'a, T> +impl From> for DataSample<'_, T> where T: Float, { @@ -178,7 +178,7 @@ where } } -impl<'a, T> From> for DataSample<'a, T> +impl From> for DataSample<'_, T> where T: Float, {