@@ -9,7 +9,7 @@ use crate::sys_common::{AsInner, AsInnerMut, FromInner};
99
1010/// Unix-specific extensions to [`File`].
1111///
12- /// [`File`]: crate:: fs::File
12+ /// [`File`]: fs::File
1313#[ stable( feature = "file_offset" , since = "1.15.0" ) ]
1414pub trait FileExt {
1515 /// Reads a number of bytes starting from a given offset.
@@ -24,7 +24,7 @@ pub trait FileExt {
2424 /// Note that similar to [`File::read`], it is not an error to return with a
2525 /// short read.
2626 ///
27- /// [`File::read`]: crate:: fs::File::read
27+ /// [`File::read`]: fs::File::read
2828 ///
2929 /// # Examples
3030 ///
@@ -55,7 +55,7 @@ pub trait FileExt {
5555 ///
5656 /// Similar to [`Read::read_exact`] but uses [`read_at`] instead of `read`.
5757 ///
58- /// [`Read::read_exact`]: crate:: io::Read::read_exact
58+ /// [`Read::read_exact`]: io::Read::read_exact
5959 /// [`read_at`]: FileExt::read_at
6060 ///
6161 /// # Errors
@@ -75,8 +75,8 @@ pub trait FileExt {
7575 /// has read, but it will never read more than would be necessary to
7676 /// completely fill the buffer.
7777 ///
78- /// [`ErrorKind::Interrupted`]: crate:: io::ErrorKind::Interrupted
79- /// [`ErrorKind::UnexpectedEof`]: crate:: io::ErrorKind::UnexpectedEof
78+ /// [`ErrorKind::Interrupted`]: io::ErrorKind::Interrupted
79+ /// [`ErrorKind::UnexpectedEof`]: io::ErrorKind::UnexpectedEof
8080 ///
8181 /// # Examples
8282 ///
@@ -132,7 +132,7 @@ pub trait FileExt {
132132 /// Note that similar to [`File::write`], it is not an error to return a
133133 /// short write.
134134 ///
135- /// [`File::write`]: crate:: fs::File::write
135+ /// [`File::write`]: fs::File::write
136136 ///
137137 /// # Examples
138138 ///
@@ -171,7 +171,7 @@ pub trait FileExt {
171171 /// This function will return the first error of
172172 /// non-[`ErrorKind::Interrupted`] kind that [`write_at`] returns.
173173 ///
174- /// [`ErrorKind::Interrupted`]: crate:: io::ErrorKind::Interrupted
174+ /// [`ErrorKind::Interrupted`]: io::ErrorKind::Interrupted
175175 /// [`write_at`]: FileExt::write_at
176176 ///
177177 /// # Examples
@@ -224,7 +224,6 @@ impl FileExt for fs::File {
224224
225225/// Unix-specific extensions to [`fs::Permissions`].
226226///
227- /// [`fs::Permissions`]: crate::fs::Permissions
228227#[ stable( feature = "fs_ext" , since = "1.1.0" ) ]
229228pub trait PermissionsExt {
230229 /// Returns the underlying raw `st_mode` bits that contain the standard
@@ -301,7 +300,6 @@ impl PermissionsExt for Permissions {
301300
302301/// Unix-specific extensions to [`fs::OpenOptions`].
303302///
304- /// [`fs::OpenOptions`]: crate::fs::OpenOptions
305303#[ stable( feature = "fs_ext" , since = "1.1.0" ) ]
306304pub trait OpenOptionsExt {
307305 /// Sets the mode bits that a new file will be created with.
@@ -370,7 +368,6 @@ impl OpenOptionsExt for OpenOptions {
370368
371369/// Unix-specific extensions to [`fs::Metadata`].
372370///
373- /// [`fs::Metadata`]: crate::fs::Metadata
374371#[ stable( feature = "metadata_ext" , since = "1.1.0" ) ]
375372pub trait MetadataExt {
376373 /// Returns the ID of the device containing the file.
@@ -655,7 +652,7 @@ impl MetadataExt for fs::Metadata {
655652/// Adds support for special Unix file types such as block/character devices,
656653/// pipes, and sockets.
657654///
658- /// [`FileType`]: crate:: fs::FileType
655+ /// [`FileType`]: fs::FileType
659656#[ stable( feature = "file_type_ext" , since = "1.5.0" ) ]
660657pub trait FileTypeExt {
661658 /// Returns whether this file type is a block device.
@@ -750,7 +747,6 @@ impl FileTypeExt for fs::FileType {
750747
751748/// Unix-specific extension methods for [`fs::DirEntry`].
752749///
753- /// [`fs::DirEntry`]: crate::fs::DirEntry
754750#[ stable( feature = "dir_entry_ext" , since = "1.1.0" ) ]
755751pub trait DirEntryExt {
756752 /// Returns the underlying `d_ino` field in the contained `dirent`
@@ -812,7 +808,6 @@ pub fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()>
812808
813809/// Unix-specific extensions to [`fs::DirBuilder`].
814810///
815- /// [`fs::DirBuilder`]: crate::fs::DirBuilder
816811#[ stable( feature = "dir_builder" , since = "1.6.0" ) ]
817812pub trait DirBuilderExt {
818813 /// Sets the mode to create new directories with. This option defaults to
0 commit comments