We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13af92f commit 9c66599Copy full SHA for 9c66599
src/libstd/net/tcp.rs
@@ -729,6 +729,9 @@ impl TcpListener {
729
/// ```
730
#[stable(feature = "rust1", since = "1.0.0")]
731
pub fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> {
732
+ // On WASM, `TcpStream` is uninhabited (as it's unsupported) and so
733
+ // the `a` variable here is technically unused.
734
+ #[cfg_attr(target_arch = "wasm32", allow(unused_variables))]
735
self.0.accept().map(|(a, b)| (TcpStream(a), b))
736
}
737
0 commit comments