diff --git a/changelog/2326.added.md b/changelog/2326.added.md index bcc29cb3db..fef5ebe721 100644 --- a/changelog/2326.added.md +++ b/changelog/2326.added.md @@ -1 +1 @@ -make SigAction repr(transparent) & can be converted to/from the libc raw type +make SigAction repr(transparent) & can be converted to the libc raw type diff --git a/src/sys/signal.rs b/src/sys/signal.rs index 8f41127e27..921fb28d6f 100644 --- a/src/sys/signal.rs +++ b/src/sys/signal.rs @@ -759,13 +759,6 @@ pub struct SigAction { sigaction: libc::sigaction } -impl From for SigAction { - fn from(value: libc::sigaction) -> Self { - Self { - sigaction: value - } - } -} impl From for libc::sigaction { fn from(value: SigAction) -> libc::sigaction { value.sigaction