Skip to content

Commit

Permalink
feat: use new hash_extract_if api
Browse files Browse the repository at this point in the history
  • Loading branch information
SmoothHacker committed Nov 22, 2023
1 parent 85a4df8 commit 547e12b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ impl<
}
// Iterates over thread handles to see if they timed out or if we need to join
// terminated threads.
worker_handles.drain_filter(|instance, handle| {
let _ = worker_handles.extract_if(|instance, handle| {
// If there is still an handle associated to this thread...
if let Some(join_handle) = handle.join_handle.as_mut() {
// ... and the thread has finished running...
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@

#![feature(exclusive_range_pattern)]
#![feature(hash_drain_filter)]
#![feature(hash_extract_if)]
#![feature(iterator_try_collect)]
#![feature(map_try_insert)]
#![feature(portable_simd)]
Expand Down

0 comments on commit 547e12b

Please sign in to comment.