about summary refs log tree commit diff
path: root/library/std/src/sys/wasi/stdio.rs
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2021-02-24 10:37:05 -0800
committerDan Gohman <dev@sunfishcode.online>2021-02-24 10:37:05 -0800
commit0208fca342977838be7c718fb0335931fbb56cff (patch)
tree1c1e5d240a5f52556170ec796613752cfba1c74c /library/std/src/sys/wasi/stdio.rs
parent9ce567efc20e3bfc8409ae92af74ebfc53b83aa8 (diff)
downloadrust-0208fca342977838be7c718fb0335931fbb56cff.tar.gz
rust-0208fca342977838be7c718fb0335931fbb56cff.zip
Use `super::` to refer to WASI-specific names.
This ensures that these names resolve to the right place even when
building the WASI support on other platforms for generating the
documentation.
Diffstat (limited to 'library/std/src/sys/wasi/stdio.rs')
-rw-r--r--library/std/src/sys/wasi/stdio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/wasi/stdio.rs b/library/std/src/sys/wasi/stdio.rs
index d82f6f41186..c665ee23996 100644
--- a/library/std/src/sys/wasi/stdio.rs
+++ b/library/std/src/sys/wasi/stdio.rs
@@ -2,7 +2,7 @@
 
 use crate::io::{self, IoSlice, IoSliceMut};
 use crate::mem::ManuallyDrop;
-use crate::sys::fd::WasiFd;
+use super::fd::WasiFd;
 
 pub struct Stdin;
 pub struct Stdout;