From 4a9b99e547ef3dec72c2246c58d20b991ac7e6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=87=E9=80=B8?= Date: Thu, 11 Jul 2024 00:50:10 +0800 Subject: [PATCH] fix: type annoation & len of maybe uninit --- compio-signal/src/linux.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compio-signal/src/linux.rs b/compio-signal/src/linux.rs index af129e81..95c31a3a 100644 --- a/compio-signal/src/linux.rs +++ b/compio-signal/src/linux.rs @@ -13,7 +13,7 @@ thread_local! { } fn sigset(sig: i32) -> io::Result { - let mut set = MaybeUninit::uninit(); + let mut set: MaybeUninit = MaybeUninit::uninit(); syscall!(libc::sigemptyset(set.as_mut_ptr()))?; syscall!(libc::sigaddset(set.as_mut_ptr(), sig))?; // SAFETY: sigemptyset initializes the set. @@ -79,7 +79,7 @@ impl SignalFd { } fn buf_len(&self) -> usize { - INFO_SIZE + 0 } fn buf_capacity(&self) -> usize {