mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
kmc-solid: Adapt to a recent change in the IntoInner
impl of SocketAddr
`(x: SocketAddr).into_inner()` evaluates to `(SocketAddrCRepr,
socklen_t)` instead of `(*const sockaddr, socklen_t)` as of
commit 55e23db13
.
This commit is contained in:
parent
6423ab3a75
commit
bfbda81107
@ -230,8 +230,8 @@ impl Socket {
|
||||
pub fn connect_timeout(&self, addr: &SocketAddr, timeout: Duration) -> io::Result<()> {
|
||||
self.set_nonblocking(true)?;
|
||||
let r = unsafe {
|
||||
let (addrp, len) = addr.into_inner();
|
||||
cvt(netc::connect(self.0.raw(), addrp, len))
|
||||
let (addr, len) = addr.into_inner();
|
||||
cvt(netc::connect(self.0.raw(), addr.as_ptr(), len))
|
||||
};
|
||||
self.set_nonblocking(false)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user