@@ -9,7 +9,7 @@ use crate::sys_common::{AsInner, AsInnerMut, FromInner};
9
9
10
10
/// Unix-specific extensions to [`File`].
11
11
///
12
- /// [`File`]: crate:: fs::File
12
+ /// [`File`]: fs::File
13
13
#[ stable( feature = "file_offset" , since = "1.15.0" ) ]
14
14
pub trait FileExt {
15
15
/// Reads a number of bytes starting from a given offset.
@@ -24,7 +24,7 @@ pub trait FileExt {
24
24
/// Note that similar to [`File::read`], it is not an error to return with a
25
25
/// short read.
26
26
///
27
- /// [`File::read`]: crate:: fs::File::read
27
+ /// [`File::read`]: fs::File::read
28
28
///
29
29
/// # Examples
30
30
///
@@ -55,7 +55,7 @@ pub trait FileExt {
55
55
///
56
56
/// Similar to [`Read::read_exact`] but uses [`read_at`] instead of `read`.
57
57
///
58
- /// [`Read::read_exact`]: crate:: io::Read::read_exact
58
+ /// [`Read::read_exact`]: io::Read::read_exact
59
59
/// [`read_at`]: FileExt::read_at
60
60
///
61
61
/// # Errors
@@ -75,8 +75,8 @@ pub trait FileExt {
75
75
/// has read, but it will never read more than would be necessary to
76
76
/// completely fill the buffer.
77
77
///
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
80
80
///
81
81
/// # Examples
82
82
///
@@ -132,7 +132,7 @@ pub trait FileExt {
132
132
/// Note that similar to [`File::write`], it is not an error to return a
133
133
/// short write.
134
134
///
135
- /// [`File::write`]: crate:: fs::File::write
135
+ /// [`File::write`]: fs::File::write
136
136
///
137
137
/// # Examples
138
138
///
@@ -171,7 +171,7 @@ pub trait FileExt {
171
171
/// This function will return the first error of
172
172
/// non-[`ErrorKind::Interrupted`] kind that [`write_at`] returns.
173
173
///
174
- /// [`ErrorKind::Interrupted`]: crate:: io::ErrorKind::Interrupted
174
+ /// [`ErrorKind::Interrupted`]: io::ErrorKind::Interrupted
175
175
/// [`write_at`]: FileExt::write_at
176
176
///
177
177
/// # Examples
@@ -224,7 +224,6 @@ impl FileExt for fs::File {
224
224
225
225
/// Unix-specific extensions to [`fs::Permissions`].
226
226
///
227
- /// [`fs::Permissions`]: crate::fs::Permissions
228
227
#[ stable( feature = "fs_ext" , since = "1.1.0" ) ]
229
228
pub trait PermissionsExt {
230
229
/// Returns the underlying raw `st_mode` bits that contain the standard
@@ -301,7 +300,6 @@ impl PermissionsExt for Permissions {
301
300
302
301
/// Unix-specific extensions to [`fs::OpenOptions`].
303
302
///
304
- /// [`fs::OpenOptions`]: crate::fs::OpenOptions
305
303
#[ stable( feature = "fs_ext" , since = "1.1.0" ) ]
306
304
pub trait OpenOptionsExt {
307
305
/// Sets the mode bits that a new file will be created with.
@@ -370,7 +368,6 @@ impl OpenOptionsExt for OpenOptions {
370
368
371
369
/// Unix-specific extensions to [`fs::Metadata`].
372
370
///
373
- /// [`fs::Metadata`]: crate::fs::Metadata
374
371
#[ stable( feature = "metadata_ext" , since = "1.1.0" ) ]
375
372
pub trait MetadataExt {
376
373
/// Returns the ID of the device containing the file.
@@ -655,7 +652,7 @@ impl MetadataExt for fs::Metadata {
655
652
/// Adds support for special Unix file types such as block/character devices,
656
653
/// pipes, and sockets.
657
654
///
658
- /// [`FileType`]: crate:: fs::FileType
655
+ /// [`FileType`]: fs::FileType
659
656
#[ stable( feature = "file_type_ext" , since = "1.5.0" ) ]
660
657
pub trait FileTypeExt {
661
658
/// Returns whether this file type is a block device.
@@ -750,7 +747,6 @@ impl FileTypeExt for fs::FileType {
750
747
751
748
/// Unix-specific extension methods for [`fs::DirEntry`].
752
749
///
753
- /// [`fs::DirEntry`]: crate::fs::DirEntry
754
750
#[ stable( feature = "dir_entry_ext" , since = "1.1.0" ) ]
755
751
pub trait DirEntryExt {
756
752
/// 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<()>
812
808
813
809
/// Unix-specific extensions to [`fs::DirBuilder`].
814
810
///
815
- /// [`fs::DirBuilder`]: crate::fs::DirBuilder
816
811
#[ stable( feature = "dir_builder" , since = "1.6.0" ) ]
817
812
pub trait DirBuilderExt {
818
813
/// Sets the mode to create new directories with. This option defaults to
0 commit comments