From 2b4ce8f1c7970e27dc83a25b093f3d79bbbe76f0 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 9 Jul 2025 00:57:48 -0400 Subject: [PATCH] don't manually cast to self i32 type --- src/system/syscall.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/syscall.rs b/src/system/syscall.rs index c960705..1113596 100644 --- a/src/system/syscall.rs +++ b/src/system/syscall.rs @@ -188,7 +188,7 @@ pub type SignalHandler = extern "C" fn(c_int); pub fn signal(signal: i32, handler: SignalHandler) -> Result<()> { #[allow(clippy::single_match)] - match unsafe { libc::signal(signal as i32, handler as libc::sighandler_t) } { + match unsafe { libc::signal(signal, handler as libc::sighandler_t) } { libc::SIG_ERR => ctx_os_error(format_args!("invalid handler for {signal:?}")), _ => Ok(()), }