Skip to content

Commit

Permalink
Add Send/Sync traits on LookupHost struct
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Aug 23, 2015
1 parent c69c29b commit 8529d75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libstd/sys/common/net.rs
Expand Up @@ -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) }
Expand Down

0 comments on commit 8529d75

Please sign in to comment.