Skip to content

Commit c68f23f

Browse files
committed
fix wasi
1 parent b00afb5 commit c68f23f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/wasi/net.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl TcpStream {
4949
}
5050

5151
pub fn is_read_vectored(&self) -> bool {
52-
unsupported()
52+
true
5353
}
5454

5555
pub fn write(&self, _: &[u8]) -> io::Result<usize> {
@@ -61,7 +61,7 @@ impl TcpStream {
6161
}
6262

6363
pub fn is_write_vectored(&self) -> bool {
64-
unsupported()
64+
true
6565
}
6666

6767
pub fn peer_addr(&self) -> io::Result<SocketAddr> {

0 commit comments

Comments
 (0)