From 76f1581a25a27029279bb5eac17971ba68df1dbe Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Mon, 15 Jun 2020 10:05:14 +0200 Subject: [PATCH] remove obsolete , to pass the format check --- src/libstd/sys/hermit/net.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/sys/hermit/net.rs b/src/libstd/sys/hermit/net.rs index 9146dfc55f438..9e588c4265ac2 100644 --- a/src/libstd/sys/hermit/net.rs +++ b/src/libstd/sys/hermit/net.rs @@ -154,7 +154,7 @@ impl TcpStream { Ipv6(ref addr) => SocketAddr::new(IpAddr::V6(Ipv6Addr::from(addr.0)), port), _ => { return Err(io::Error::new(ErrorKind::Other, "peer_addr failed")); - }, + } }; Ok(saddr) @@ -234,7 +234,7 @@ impl TcpListener { Ipv6(ref addr) => SocketAddr::new(IpAddr::V6(Ipv6Addr::from(addr.0)), port), _ => { return Err(io::Error::new(ErrorKind::Other, "accept failed")); - }, + } }; Ok((TcpStream(Arc::new(Socket(handle))), saddr))