mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
remove obsolete , to pass the format check
This commit is contained in:
parent
a8e3746e91
commit
76f1581a25
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user