about summary refs log tree commit diff
path: root/library/std/src/sys/wasi/stdio.rs
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2022-10-09 15:31:27 +0100
committerJosh Triplett <josh@joshtriplett.org>2022-10-09 19:01:56 +0100
commit88bb4e4bda2e5ccafbc28ded2ef289841d5fb655 (patch)
treef8e81cb5e87e8a2c728bc53d7a9798b8940e07af /library/std/src/sys/wasi/stdio.rs
parentc0784109daa00f2e43c1b55becc2169bc5b3bf6f (diff)
downloadrust-88bb4e4bda2e5ccafbc28ded2ef289841d5fb655.tar.gz
rust-88bb4e4bda2e5ccafbc28ded2ef289841d5fb655.zip
impl AsFd for io::{Stdin, Stdout, Stderr}, not the sys versions
https://github.com/rust-lang/rust/pull/100892 implemented AsFd for the
sys versions, rather than for the public types. Change the
implementations to apply to the public types.
Diffstat (limited to 'library/std/src/sys/wasi/stdio.rs')
-rw-r--r--library/std/src/sys/wasi/stdio.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sys/wasi/stdio.rs b/library/std/src/sys/wasi/stdio.rs
index bf045c7841f..427dcf6bb06 100644
--- a/library/std/src/sys/wasi/stdio.rs
+++ b/library/std/src/sys/wasi/stdio.rs
@@ -23,7 +23,7 @@ impl AsRawFd for Stdin {
     }
 }
 
-impl AsFd for Stdin {
+impl AsFd for io::Stdin {
     #[inline]
     fn as_fd(&self) -> BorrowedFd<'_> {
         unsafe { BorrowedFd::borrow_raw(0) }
@@ -67,7 +67,7 @@ impl AsRawFd for Stdout {
     }
 }
 
-impl AsFd for Stdout {
+impl AsFd for io::Stdout {
     #[inline]
     fn as_fd(&self) -> BorrowedFd<'_> {
         unsafe { BorrowedFd::borrow_raw(1) }
@@ -114,7 +114,7 @@ impl AsRawFd for Stderr {
     }
 }
 
-impl AsFd for Stderr {
+impl AsFd for io::Stderr {
     #[inline]
     fn as_fd(&self) -> BorrowedFd<'_> {
         unsafe { BorrowedFd::borrow_raw(2) }