Skip to content

Commit

Permalink
revert: impl From<sigaction> for SigAction (#2410)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed May 19, 2024
1 parent ec4beb5 commit 1604723
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion changelog/2326.added.md
Original file line number Diff line number Diff line change
@@ -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
7 changes: 0 additions & 7 deletions src/sys/signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -759,13 +759,6 @@ pub struct SigAction {
sigaction: libc::sigaction
}

impl From<libc::sigaction> for SigAction {
fn from(value: libc::sigaction) -> Self {
Self {
sigaction: value
}
}
}
impl From<SigAction> for libc::sigaction {
fn from(value: SigAction) -> libc::sigaction {
value.sigaction
Expand Down

0 comments on commit 1604723

Please sign in to comment.