diff --git a/msim/src/sim/net/mod.rs b/msim/src/sim/net/mod.rs index 692eb4a..85b1c19 100644 --- a/msim/src/sim/net/mod.rs +++ b/msim/src/sim/net/mod.rs @@ -333,10 +333,7 @@ unsafe fn accept_impl( let net = plugin::simulator::(); let network = net.network.lock().unwrap(); - let endpoint = socket - .endpoint - .as_ref() - .ok_or((-1, libc::EINVAL))?; + let endpoint = socket.endpoint.as_ref().ok_or((-1, libc::EINVAL))?; if endpoint.peer.is_some() { // attempt to accept on a socket that is already connected. @@ -824,11 +821,7 @@ unsafe fn recv_impl(ep: &Endpoint, msg: *mut libc::msghdr) -> CResult