Skip to content

Commit 9f29a34

Browse files
chore: add cfg cond for unix on UnixListener
1 parent 480f879 commit 9f29a34

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: CI
22
on:
33
push:
4-
branches: ["**"]
4+
branches:
5+
- main
56
paths-ignore:
67
- '*.md'
78
pull_request:

src/net.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ impl AsyncAccept for UnixListener {
5151
}
5252
}
5353

54+
#[cfg(unix)]
5455
#[cfg_attr(docsrs, doc(cfg(feature = "tokio-net")))]
5556
impl AsyncListener for UnixListener {
5657
#[inline]

0 commit comments

Comments
 (0)