Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes from clippy 0.1.83 #188

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading