Merge pull request #370 from Lorfdail/master

Handle non unix case in poll_start of PollConnect
This commit is contained in:
Steven Fackler 2018-08-25 15:42:30 -07:00 committed by GitHub
commit 12546ecd95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,14 @@ impl PollConnect for Connect {
params: state.params,
tls: state.tls,
})
}
},
#[cfg(not(unix))]
Host::Unix(_) => {
Err(Error::connect(io::Error::new(
io::ErrorKind::Other,
"unix sockets are not supported on this platform",
)))
},
}
}