Skip to content

Commit

Permalink
Merge pull request #188 from light-curve/clippy1.83
Browse files Browse the repository at this point in the history
Fixes from clippy 0.1.83
  • Loading branch information
hombit authored Dec 3, 2024
2 parents 3c94076 + a25a01f commit 08c7a0e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/features/bazin_fit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct Params<'a, T> {
external: [T; NPARAMS],
}

impl<'a, T> Params<'a, T>
impl<T> Params<'_, T>
where
T: LikeFloat,
{
Expand Down
2 changes: 1 addition & 1 deletion src/features/linexp_fit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct Params<'a, T> {
external: [T; NPARAMS],
}

impl<'a, T> Params<'a, T>
impl<T> Params<'_, T>
where
T: LikeFloat,
{
Expand Down
1 change: 0 additions & 1 deletion src/features/roms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ where
#[cfg(test)]
#[allow(clippy::unreadable_literal)]
#[allow(clippy::excessive_precision)]

mod tests {
use super::*;
use crate::extractor::FeatureExtractor;
Expand Down
2 changes: 1 addition & 1 deletion src/features/villar_fit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ struct Params<'a, T> {
external: [T; NPARAMS],
}

impl<'a, T> Params<'a, T>
impl<T> Params<'_, T>
where
T: LikeFloat,
{
Expand Down
4 changes: 2 additions & 2 deletions src/lnerfc.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/nl_fit/mcmc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<F, LP, const NPARAMS: usize> Prob for EmceeModel<'_, F, LP, NPARAMS>
where
F: Fn(&Guess) -> f32,
LP: Fn(&Guess) -> f32,
Expand Down
4 changes: 2 additions & 2 deletions src/time_series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ where
}
}

impl<'a, T> From<Vec<T>> for DataSample<'a, T>
impl<T> From<Vec<T>> for DataSample<'_, T>
where
T: Float,
{
Expand All @@ -178,7 +178,7 @@ where
}
}

impl<'a, T> From<Array1<T>> for DataSample<'a, T>
impl<T> From<Array1<T>> for DataSample<'_, T>
where
T: Float,
{
Expand Down

0 comments on commit 08c7a0e

Please sign in to comment.