Skip to content

Commit

Permalink
remove obsolete , to pass the format check
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Jun 15, 2020
1 parent a8e3746 commit 76f1581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/sys/hermit/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 76f1581

Please sign in to comment.