Skip to content

Commit e6d61ad

Browse files
committed
Use slice_as_mut_ptr instead of first_ptr_mut.
This function was renamed.
1 parent 8ae3b50 commit e6d61ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/cloudabi/condvar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl Condvar {
124124
let mut nevents: mem::MaybeUninit<usize> = mem::MaybeUninit::uninit();
125125
let ret = abi::poll(
126126
subscriptions.as_ptr(),
127-
mem::MaybeUninit::first_ptr_mut(&mut events),
127+
mem::MaybeUninit::slice_as_mut_ptr(&mut events),
128128
2,
129129
nevents.as_mut_ptr(),
130130
);

0 commit comments

Comments
 (0)