Add Send/Sync traits on LookupHost struct

This commit is contained in:
Guillaume Gomez 2015-08-23 22:27:33 +02:00
parent c69c29bb53
commit 8529d75b81

View File

@ -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) }