Skip to content

Commit

Permalink
Merge pull request #3 from SmoothHacker/nightly-fixes
Browse files Browse the repository at this point in the history
Fixes nightly compilation problems where the "hash_drain_filter" feature got renamed to "hash_extract_if".

See rust-lang/rust#104455 for more info.
  • Loading branch information
0xLyte authored Nov 23, 2023
2 parents 85a4df8 + 547e12b commit e09d3bc
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 e09d3bc

Please sign in to comment.