Skip to content

Commit 1604723

Browse files
authored
revert: impl From<sigaction> for SigAction (#2410)
1 parent ec4beb5 commit 1604723

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

changelog/2326.added.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
make SigAction repr(transparent) & can be converted to/from the libc raw type
1+
make SigAction repr(transparent) & can be converted to the libc raw type

src/sys/signal.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -759,13 +759,6 @@ pub struct SigAction {
759759
sigaction: libc::sigaction
760760
}
761761

762-
impl From<libc::sigaction> for SigAction {
763-
fn from(value: libc::sigaction) -> Self {
764-
Self {
765-
sigaction: value
766-
}
767-
}
768-
}
769762
impl From<SigAction> for libc::sigaction {
770763
fn from(value: SigAction) -> libc::sigaction {
771764
value.sigaction

0 commit comments

Comments
 (0)