Skip to content

Commit 91ae811

Browse files
tamirdThomasdezeeuw
authored andcommitted
Tersify using cfg_attr
1 parent 24c231c commit 91ae811

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,8 @@ mod sockaddr;
119119
mod socket;
120120
mod sockref;
121121

122-
#[cfg(unix)]
123-
#[path = "sys/unix.rs"]
124-
mod sys;
125-
#[cfg(windows)]
126-
#[path = "sys/windows.rs"]
122+
#[cfg_attr(unix, path = "sys/unix.rs")]
123+
#[cfg_attr(windows, path = "sys/windows.rs")]
127124
mod sys;
128125

129126
#[cfg(not(any(windows, unix)))]

0 commit comments

Comments
 (0)