Skip to content

Commit cd747f9

Browse files
committed
fix: ScopedJoinHandle is not always available
1 parent bcad5c2 commit cd747f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gix-pack/src/cache/delta/traverse/resolve.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,10 @@ where
357357
// but may instead find a good way to set the polling interval instead of hard-coding it.
358358
std::thread::sleep(poll_interval);
359359
// Get out of threads are already starving or they would be starving soon as no work is left.
360-
if threads.iter().any(std::thread::ScopedJoinHandle::is_finished) {
360+
//
361+
// Lint: ScopedJoinHandle is not the same depending on active features and is not exposed in some cases.
362+
#[allow(clippy::redundant_closure_for_method_calls)]
363+
if threads.iter().any(|t| t.is_finished()) {
361364
let mut running_threads = Vec::new();
362365
for thread in threads.drain(..) {
363366
if thread.is_finished() {

0 commit comments

Comments
 (0)