Use slice_as_mut_ptr instead of first_ptr_mut.

This function was renamed.
This commit is contained in:
Mara Bos 2020-10-07 18:14:47 +02:00
parent 8ae3b50976
commit e6d61ade9c

View File

@ -124,7 +124,7 @@ pub unsafe fn wait_timeout(&self, mutex: &Mutex, dur: Duration) -> bool {
let mut nevents: mem::MaybeUninit<usize> = mem::MaybeUninit::uninit();
let ret = abi::poll(
subscriptions.as_ptr(),
mem::MaybeUninit::first_ptr_mut(&mut events),
mem::MaybeUninit::slice_as_mut_ptr(&mut events),
2,
nevents.as_mut_ptr(),
);