Add Send/Sync traits on LookupHost struct
This commit is contained in:
parent
c69c29bb53
commit
8529d75b81
@ -110,6 +110,9 @@ fn next(&mut self) -> Option<io::Result<SocketAddr>> {
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl Sync for LookupHost {}
|
||||
unsafe impl Send for LookupHost {}
|
||||
|
||||
impl Drop for LookupHost {
|
||||
fn drop(&mut self) {
|
||||
unsafe { freeaddrinfo(self.original) }
|
||||
|
Loading…
Reference in New Issue
Block a user