Skip to content

Commit e1099ee

Browse files
author
Bryant Mairs
committed
Don't clone Copy types
1 parent 6dbfabf commit e1099ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/signal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ mod sigevent {
599599

600600
impl<'a> From<&'a libc::sigevent> for SigEvent {
601601
fn from(sigevent: &libc::sigevent) -> Self {
602-
SigEvent{ sigevent: sigevent.clone() }
602+
SigEvent{ sigevent: *sigevent }
603603
}
604604
}
605605
}

0 commit comments

Comments
 (0)