Skip to content

Commit d4c0af6

Browse files
committed
Don't override is_write_vectored.
1 parent 58c7a35 commit d4c0af6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/sys/unix/stdio.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ impl io::Read for Stdin {
4040
ManuallyDrop::new(FileDesc::new(libc::STDIN_FILENO)).read_vectored(bufs)
4141
}
4242

43+
#[cfg(not(target_arch = "xtensa"))]
4344
#[inline]
4445
fn is_read_vectored(&self) -> bool {
4546
true
@@ -68,6 +69,7 @@ impl io::Write for Stdout {
6869
ManuallyDrop::new(FileDesc::new(libc::STDOUT_FILENO)).write_vectored(bufs)
6970
}
7071

72+
#[cfg(not(target_arch = "xtensa"))]
7173
#[inline]
7274
fn is_write_vectored(&self) -> bool {
7375
true

0 commit comments

Comments
 (0)