Skip to content

Commit bfbda81

Browse files
committed
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 55e23db.
1 parent 6423ab3 commit bfbda81

File tree

1 file changed

+2
-2
lines changed
  • library/std/src/sys/solid

1 file changed

+2
-2
lines changed

library/std/src/sys/solid/net.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ impl Socket {
230230
pub fn connect_timeout(&self, addr: &SocketAddr, timeout: Duration) -> io::Result<()> {
231231
self.set_nonblocking(true)?;
232232
let r = unsafe {
233-
let (addrp, len) = addr.into_inner();
234-
cvt(netc::connect(self.0.raw(), addrp, len))
233+
let (addr, len) = addr.into_inner();
234+
cvt(netc::connect(self.0.raw(), addr.as_ptr(), len))
235235
};
236236
self.set_nonblocking(false)?;
237237

0 commit comments

Comments
 (0)