Skip to content

Commit c498595

Browse files
authored
uucore: simplify cfg checks in signals.rs (#10296)
Remove redundant unix conditions since macOS is already covered by the unix target family
1 parent f01d1e8 commit c498595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uucore/src/lib/features/signals.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,13 +457,13 @@ pub unsafe extern "C" fn capture_sigpipe_state() {
457457
#[cfg(unix)]
458458
macro_rules! init_sigpipe_capture {
459459
() => {
460-
#[cfg(all(unix, not(target_os = "macos")))]
460+
#[cfg(not(target_os = "macos"))]
461461
#[used]
462462
#[unsafe(link_section = ".init_array")]
463463
static CAPTURE_SIGPIPE_STATE: unsafe extern "C" fn() =
464464
$crate::signals::capture_sigpipe_state;
465465

466-
#[cfg(all(unix, target_os = "macos"))]
466+
#[cfg(target_os = "macos")]
467467
#[used]
468468
#[unsafe(link_section = "__DATA,__mod_init_func")]
469469
static CAPTURE_SIGPIPE_STATE: unsafe extern "C" fn() =

0 commit comments

Comments
 (0)