Skip to content

Commit 8529d75

Browse files
Add Send/Sync traits on LookupHost struct
1 parent c69c29b commit 8529d75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libstd/sys/common/net.rs

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ impl Iterator for LookupHost {
110110
}
111111
}
112112

113+
unsafe impl Sync for LookupHost {}
114+
unsafe impl Send for LookupHost {}
115+
113116
impl Drop for LookupHost {
114117
fn drop(&mut self) {
115118
unsafe { freeaddrinfo(self.original) }

0 commit comments

Comments
 (0)