Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/runtime/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,11 @@ impl Process {
/// of a specific type. The buffer does not need to be initialized. After
/// the slice successfully got filled, the initialized slice is returned.
#[inline]
pub fn read_into_uninit_slice<T: CheckedBitPattern>(
pub fn read_into_uninit_slice<'buf, T: CheckedBitPattern>(
&self,
address: impl Into<Address>,
slice: &mut [MaybeUninit<T>],
) -> Result<&mut [T], Error> {
slice: &'buf mut [MaybeUninit<T>],
) -> Result<&'buf mut [T], Error> {
// SAFETY: The process handle is guaranteed to be valid. We provide a
// valid pointer and length to the buffer. We also do proper error
// handling afterwards. The buffer is guaranteed to be initialized
Expand Down
Loading