Skip to content

Commit 4a9b99e

Browse files
committed
fix: type annoation & len of maybe uninit
1 parent 5964d24 commit 4a9b99e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compio-signal/src/linux.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ thread_local! {
1313
}
1414

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

8181
fn buf_len(&self) -> usize {
82-
INFO_SIZE
82+
0
8383
}
8484

8585
fn buf_capacity(&self) -> usize {

0 commit comments

Comments
 (0)