Skip to content

Commit 6dbfabf

Browse files
author
Bryant Mairs
committed
Remove redundant closure
1 parent 86a5b24 commit 6dbfabf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sys/signal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,9 @@ pub fn pthread_sigmask(how: SigmaskHow,
435435
let res = unsafe {
436436
// if set or oldset is None, pass in null pointers instead
437437
libc::pthread_sigmask(how as libc::c_int,
438-
set.map_or_else(|| ptr::null::<libc::sigset_t>(),
438+
set.map_or_else(ptr::null::<libc::sigset_t>,
439439
|s| &s.sigset as *const libc::sigset_t),
440-
oldset.map_or_else(|| ptr::null_mut::<libc::sigset_t>(),
440+
oldset.map_or_else(ptr::null_mut::<libc::sigset_t>,
441441
|os| &mut os.sigset as *mut libc::sigset_t))
442442
};
443443

0 commit comments

Comments
 (0)