Skip to content

Commit

Permalink
Add #[inline] attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov authored Feb 5, 2025
1 parent c5c743b commit 2edbfcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backends/linux_raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ unsafe fn getrandom_syscall(buf: *mut u8, buflen: usize, flags: u32) -> isize {
r0
}

#[inline]
pub fn fill_inner(mut dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
// Value of this error code is stable across all target arches.
const EINTR: isize = -4;
Expand Down

0 comments on commit 2edbfcf

Please sign in to comment.