Skip to content

Commit

Permalink
fix wasi
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Apr 27, 2020
1 parent b00afb5 commit c68f23f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/sys/wasi/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl TcpStream {
}

pub fn is_read_vectored(&self) -> bool {
unsupported()
true
}

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

pub fn is_write_vectored(&self) -> bool {
unsupported()
true
}

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

0 comments on commit c68f23f

Please sign in to comment.