Skip to content

Commit

Permalink
fix: minor modification to allow for MSRV of 1.70
Browse files Browse the repository at this point in the history
  • Loading branch information
denehoffman committed Dec 7, 2024
1 parent bd6950c commit ac553cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/likelihoods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ impl NLL {
pub fn project(&self, parameters: &[Float], mc_evaluator: Option<Evaluator>) -> Vec<Float> {
let (events, result) = if let Some(mc_evaluator) = mc_evaluator {
(
&mc_evaluator.dataset.clone(),
mc_evaluator.dataset.clone(),
mc_evaluator.evaluate(parameters),
)
} else {
(
&self.accmc_evaluator.dataset,
self.accmc_evaluator.dataset.clone(),
self.accmc_evaluator.evaluate(parameters),
)
};
Expand Down Expand Up @@ -146,12 +146,12 @@ impl NLL {
pub fn project(&self, parameters: &[Float], mc_evaluator: Option<Evaluator>) -> Vec<Float> {
let (events, result) = if let Some(mc_evaluator) = mc_evaluator {
(
&mc_evaluator.dataset.clone(),
mc_evaluator.dataset.clone(),
mc_evaluator.evaluate(parameters),
)
} else {
(
&self.accmc_evaluator.dataset,
self.accmc_evaluator.dataset.clone(),
self.accmc_evaluator.evaluate(parameters),
)
};
Expand Down

0 comments on commit ac553cd

Please sign in to comment.