File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/wasi-common/src/sys/unix Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ impl StdioExt for Stdio {
26
26
Ok ( Box :: new ( Self :: In { rights } ) )
27
27
}
28
28
fn stdout ( ) -> io:: Result < Box < dyn Handle > > {
29
- let file = unsafe { File :: from_raw_fd ( io:: stdin ( ) . as_raw_fd ( ) ) } ;
29
+ let file = unsafe { File :: from_raw_fd ( io:: stdout ( ) . as_raw_fd ( ) ) } ;
30
30
let file = ManuallyDrop :: new ( file) ;
31
31
let rights = get_rights ( & file) ?;
32
32
let rights = Cell :: new ( rights) ;
33
33
Ok ( Box :: new ( Self :: Out { rights } ) )
34
34
}
35
35
fn stderr ( ) -> io:: Result < Box < dyn Handle > > {
36
- let file = unsafe { File :: from_raw_fd ( io:: stdin ( ) . as_raw_fd ( ) ) } ;
36
+ let file = unsafe { File :: from_raw_fd ( io:: stderr ( ) . as_raw_fd ( ) ) } ;
37
37
let file = ManuallyDrop :: new ( file) ;
38
38
let rights = get_rights ( & file) ?;
39
39
let rights = Cell :: new ( rights) ;
You can’t perform that action at this time.
0 commit comments