Skip to content

Commit fee0b20

Browse files
committed
Remove old TODOs
1 parent 6542b19 commit fee0b20

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/sys/unix.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ const MAX_BUF_LEN: usize = <c_int>::max_value() as usize - 1;
136136
type IovLen = usize;
137137

138138
#[cfg(any(
139+
all(target_os = "linux", target_env = "musl"),
139140
target_os = "dragonfly",
140141
target_os = "freebsd",
141-
all(target_os = "linux", target_env = "musl"),
142-
target_vendor = "apple",
142+
target_os = "illumos",
143143
target_os = "netbsd",
144144
target_os = "openbsd",
145145
target_os = "solaris",
146-
target_os = "illumos",
146+
target_vendor = "apple",
147147
))]
148148
type IovLen = c_int;
149149

@@ -352,7 +352,6 @@ impl SockAddr {
352352
}
353353
}
354354

355-
// TODO: rename to `Socket` once the struct `Socket` is no longer used.
356355
pub(crate) type Socket = c_int;
357356

358357
pub(crate) fn socket(family: c_int, ty: c_int, protocol: c_int) -> io::Result<Socket> {

src/sys/windows.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ fn init() {
157157
});
158158
}
159159

160-
// TODO: rename to `Socket` once the struct `Socket` is no longer used.
161160
pub(crate) type Socket = sock::SOCKET;
162161

163162
pub(crate) fn socket(family: c_int, mut ty: c_int, protocol: c_int) -> io::Result<Socket> {

0 commit comments

Comments
 (0)