Skip to content

Commit 88bb4e4

Browse files
committed
impl AsFd for io::{Stdin, Stdout, Stderr}, not the sys versions
rust-lang#100892 implemented AsFd for the sys versions, rather than for the public types. Change the implementations to apply to the public types.
1 parent c078410 commit 88bb4e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/sys/wasi/stdio.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl AsRawFd for Stdin {
2323
}
2424
}
2525

26-
impl AsFd for Stdin {
26+
impl AsFd for io::Stdin {
2727
#[inline]
2828
fn as_fd(&self) -> BorrowedFd<'_> {
2929
unsafe { BorrowedFd::borrow_raw(0) }
@@ -67,7 +67,7 @@ impl AsRawFd for Stdout {
6767
}
6868
}
6969

70-
impl AsFd for Stdout {
70+
impl AsFd for io::Stdout {
7171
#[inline]
7272
fn as_fd(&self) -> BorrowedFd<'_> {
7373
unsafe { BorrowedFd::borrow_raw(1) }
@@ -114,7 +114,7 @@ impl AsRawFd for Stderr {
114114
}
115115
}
116116

117-
impl AsFd for Stderr {
117+
impl AsFd for io::Stderr {
118118
#[inline]
119119
fn as_fd(&self) -> BorrowedFd<'_> {
120120
unsafe { BorrowedFd::borrow_raw(2) }

0 commit comments

Comments
 (0)