提交 76f1581a 编写于 作者: S Stefan Lankes

remove obsolete , to pass the format check

上级 a8e3746e
...@@ -154,7 +154,7 @@ pub fn peer_addr(&self) -> io::Result<SocketAddr> { ...@@ -154,7 +154,7 @@ pub fn peer_addr(&self) -> io::Result<SocketAddr> {
Ipv6(ref addr) => SocketAddr::new(IpAddr::V6(Ipv6Addr::from(addr.0)), port), Ipv6(ref addr) => SocketAddr::new(IpAddr::V6(Ipv6Addr::from(addr.0)), port),
_ => { _ => {
return Err(io::Error::new(ErrorKind::Other, "peer_addr failed")); return Err(io::Error::new(ErrorKind::Other, "peer_addr failed"));
}, }
}; };
Ok(saddr) Ok(saddr)
...@@ -234,7 +234,7 @@ pub fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> { ...@@ -234,7 +234,7 @@ pub fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> {
Ipv6(ref addr) => SocketAddr::new(IpAddr::V6(Ipv6Addr::from(addr.0)), port), Ipv6(ref addr) => SocketAddr::new(IpAddr::V6(Ipv6Addr::from(addr.0)), port),
_ => { _ => {
return Err(io::Error::new(ErrorKind::Other, "accept failed")); return Err(io::Error::new(ErrorKind::Other, "accept failed"));
}, }
}; };
Ok((TcpStream(Arc::new(Socket(handle))), saddr)) Ok((TcpStream(Arc::new(Socket(handle))), saddr))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册