Skip to content

Fix clippy 1.87 warnings #522

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

Merged
merged 1 commit into from
May 19, 2025
Merged
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
20 changes: 9 additions & 11 deletions light-curve/src/dmdt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,17 +656,15 @@
if !slf.range.is_empty() {
let rng = Self::child_rng(slf.rng.as_mut());
// We know that it is None
let _ = std::mem::replace(
&mut *slf
.worker_thread
.write()
.map_err(|_| ValueError(String::from("Error getting worker_thread")))?,
Some(Self::run_worker_thread(
&slf.dmdt_batches,
&slf.lcs_order[slf.range.start..slf.range.end],
rng,
)),
);
let mut worker_thread = slf
.worker_thread
.write()
.map_err(|_| ValueError(String::from("Error getting worker_thread")))?;
*worker_thread = Some(Self::run_worker_thread(
&slf.dmdt_batches,
&slf.lcs_order[slf.range.start..slf.range.end],
rng,
));

Check warning on line 667 in light-curve/src/dmdt.rs

View check run for this annotation

Codecov / codecov/patch

light-curve/src/dmdt.rs#L659-L667

Added lines #L659 - L667 were not covered by tests
}

let py_array = array.into_pyarray(slf.py()).into_any();
Expand Down
Loading