Skip to content

Commit

Permalink
fix: type annoation & len of maybe uninit
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Jul 10, 2024
1 parent 5964d24 commit 4a9b99e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compio-signal/src/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ thread_local! {
}

fn sigset(sig: i32) -> io::Result<libc::sigset_t> {
let mut set = MaybeUninit::uninit();
let mut set: MaybeUninit<libc::sigset_t> = MaybeUninit::uninit();
syscall!(libc::sigemptyset(set.as_mut_ptr()))?;
syscall!(libc::sigaddset(set.as_mut_ptr(), sig))?;
// SAFETY: sigemptyset initializes the set.
Expand Down Expand Up @@ -79,7 +79,7 @@ impl SignalFd {
}

fn buf_len(&self) -> usize {
INFO_SIZE
0
}

fn buf_capacity(&self) -> usize {
Expand Down

0 comments on commit 4a9b99e

Please sign in to comment.