diff options
| author | bors <bors@rust-lang.org> | 2020-09-03 05:53:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-09-03 05:53:48 +0000 |
| commit | 08deb863bdebfcbbb71c18acf903eca84f1df4e7 (patch) | |
| tree | 2d3aa4dadd1b91d2506952df2fd6e1bbc12ad6af /library/std/src/sys | |
| parent | 1e33c742ca572a93d97106876041c241c23a562a (diff) | |
| parent | bb103476a9375787f7e610ab1883093f8358ed70 (diff) | |
| download | rust-08deb863bdebfcbbb71c18acf903eca84f1df4e7.tar.gz rust-08deb863bdebfcbbb71c18acf903eca84f1df4e7.zip | |
Auto merge of #76235 - jyn514:std-intra-links, r=poliorcetics
Convert many files to intra-doc links Helps with https://github.com/rust-lang/rust/issues/75080 r? @poliorcetics I recommend reviewing one commit at a time, but the diff is small enough you can do it all at once if you like :)
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/unix/ext/fs.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/ext/fs.rs b/library/std/src/sys/unix/ext/fs.rs index b590a0280d1..e48e950928a 100644 --- a/library/std/src/sys/unix/ext/fs.rs +++ b/library/std/src/sys/unix/ext/fs.rs @@ -8,6 +8,9 @@ use crate::path::Path; use crate::sys; use crate::sys::platform::fs::MetadataExt as UnixMetadataExt; use crate::sys_common::{AsInner, AsInnerMut, FromInner}; +// Used for `File::read` on intra-doc links +#[allow(unused_imports)] +use io::{Read, Write}; /// Unix-specific extensions to [`fs::File`]. #[stable(feature = "file_offset", since = "1.15.0")] @@ -24,7 +27,7 @@ pub trait FileExt { /// Note that similar to [`File::read`], it is not an error to return with a /// short read. /// - /// [`File::read`]: ../../../../std/fs/struct.File.html#method.read + /// [`File::read`]: fs::File::read /// /// # Examples /// @@ -127,7 +130,7 @@ pub trait FileExt { /// Note that similar to [`File::write`], it is not an error to return a /// short write. /// - /// [`File::write`]: ../../../../std/fs/struct.File.html#method.write + /// [`File::write`]: fs::File::write /// /// # Examples /// |
