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 {
2626 Ok ( Box :: new ( Self :: In { rights } ) )
2727 }
2828 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 ( ) ) } ;
3030 let file = ManuallyDrop :: new ( file) ;
3131 let rights = get_rights ( & file) ?;
3232 let rights = Cell :: new ( rights) ;
3333 Ok ( Box :: new ( Self :: Out { rights } ) )
3434 }
3535 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 ( ) ) } ;
3737 let file = ManuallyDrop :: new ( file) ;
3838 let rights = get_rights ( & file) ?;
3939 let rights = Cell :: new ( rights) ;
You can’t perform that action at this time.
0 commit comments