Skip to content

Commit

Permalink
Merge pull request #163 from light-curve/clippy-0.1.78
Browse files Browse the repository at this point in the history
Fixes of new lints from clippy 0.1.78
  • Loading branch information
hombit authored May 28, 2024
2 parents dae11d7 + 09d38b3 commit 0799566
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/nl_fit/mcmc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl CurveFitTrait for McmcCurveFit {
let _result = sampler.sample(&initial_guesses, self.niterations as usize, |step| {
for (pos, &lnprob) in step.pos.iter().zip(step.lnprob.iter()) {
if lnprob > best_lnprob {
best_x = pos.values.clone();
best_x.clone_from(&pos.values);
best_lnprob = lnprob;
}
}
Expand Down
2 changes: 2 additions & 0 deletions test-util/src/lc_data/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ use serde::de::DeserializeOwned;
use serde::Deserialize;

pub(super) trait Record<T, B>: DeserializeOwned {
#[allow(dead_code)]
fn into_triple(self) -> (T, T, T);
fn into_quadruple(self) -> (T, T, T, B);
#[allow(dead_code)]
fn band(&self) -> B;
}

Expand Down

0 comments on commit 0799566

Please sign in to comment.