Clean up unneeded explicit pointer cast

The reference automatically coerces to a pointer. Writing an explicit
cast here is slightly misleading because that's most commonly used when
a pointer needs to be converted from one pointer type to another, e.g.
`*const c_void` to `*const sigaction` or vice versa.
This commit is contained in:
David Tolnay 2021-09-28 21:17:57 -07:00
parent f1c8accf90
commit e3e5ae91d0
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -335,7 +335,7 @@ unsafe fn do_exec(
cvt(libc::pthread_sigmask(libc::SIG_SETMASK, set.as_ptr(), ptr::null_mut()))?;
let mut action: libc::sigaction = mem::zeroed();
action.sa_sigaction = libc::SIG_DFL;
cvt(libc::sigaction(libc::SIGPIPE, &action as *const _, ptr::null_mut()))?;
cvt(libc::sigaction(libc::SIGPIPE, &action, ptr::null_mut()))?;
}
for callback in self.get_closures().iter_mut() {