Skip to content

Commit e09d3bc

Browse files
authored
Merge pull request #3 from SmoothHacker/nightly-fixes
Fixes nightly compilation problems where the "hash_drain_filter" feature got renamed to "hash_extract_if". See rust-lang/rust#104455 for more info.
2 parents 85a4df8 + 547e12b commit e09d3bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ impl<
384384
}
385385
// Iterates over thread handles to see if they timed out or if we need to join
386386
// terminated threads.
387-
worker_handles.drain_filter(|instance, handle| {
387+
let _ = worker_handles.extract_if(|instance, handle| {
388388
// If there is still an handle associated to this thread...
389389
if let Some(join_handle) = handle.join_handle.as_mut() {
390390
// ... and the thread has finished running...

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
158158

159159
#![feature(exclusive_range_pattern)]
160-
#![feature(hash_drain_filter)]
160+
#![feature(hash_extract_if)]
161161
#![feature(iterator_try_collect)]
162162
#![feature(map_try_insert)]
163163
#![feature(portable_simd)]

0 commit comments

Comments
 (0)