Add Send/Sync traits on LookupHost struct
This commit is contained in:
parent
c69c29bb53
commit
8529d75b81
1 changed files with 3 additions and 0 deletions
|
|
@ -110,6 +110,9 @@ impl Iterator for LookupHost {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe impl Sync for LookupHost {}
|
||||
unsafe impl Send for LookupHost {}
|
||||
|
||||
impl Drop for LookupHost {
|
||||
fn drop(&mut self) {
|
||||
unsafe { freeaddrinfo(self.original) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue