Skip to content

Commit aa53a03

Browse files
committed
Revert "changes to pass the format check"
This reverts commit 9d596b5.
1 parent 810ba39 commit aa53a03

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/libstd/sys/hermit/net.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,13 @@ impl TcpStream {
148148
IpAddr::V4(Ipv4Addr::new(addr.0[0], addr.0[1], addr.0[2], addr.0[3])),
149149
port,
150150
),
151-
Ipv6(ref addr) => SocketAddr::new(IpAddr::V6(Ipv6Addr::new(addr.0)), port),
151+
Ipv6(ref addr) => SocketAddr::new(
152+
IpAddr::V6(Ipv6Addr::new(addr.0)),
153+
port,
154+
),
152155
_ => {
153156
return Err(io::Error::new(ErrorKind::Other, "peer_addr failed"));
154-
}
157+
},
155158
};
156159

157160
Ok(saddr)
@@ -228,10 +231,13 @@ impl TcpListener {
228231
IpAddr::V4(Ipv4Addr::new(addr.0[0], addr.0[1], addr.0[2], addr.0[3])),
229232
port,
230233
),
231-
Ipv6(ref addr) => SocketAddr::new(IpAddr::V6(Ipv6Addr::new(addr.0)), port),
234+
Ipv6(ref addr) => SocketAddr::new(
235+
IpAddr::V6(Ipv6Addr::new(addr.0)),
236+
port,
237+
),
232238
_ => {
233239
return Err(io::Error::new(ErrorKind::Other, "accept failed"));
234-
}
240+
},
235241
};
236242

237243
Ok((TcpStream(Arc::new(Socket(handle))), saddr))

0 commit comments

Comments
 (0)