Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bba33ec

Browse files
committedJul 10, 2016
Derive Debug on FileType.
Partially fixes #32054
1 parent 6871b3f commit bba33ec

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎src/libstd/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ pub struct Permissions(fs_imp::FilePermissions);
141141

142142
/// An structure representing a type of file with accessors for each file type.
143143
#[stable(feature = "file_type", since = "1.1.0")]
144-
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
144+
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
145145
pub struct FileType(fs_imp::FileType);
146146

147147
/// A builder used to create directories in various manners.

‎src/libstd/sys/unix/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub struct OpenOptions {
8484
#[derive(Clone, PartialEq, Eq, Debug)]
8585
pub struct FilePermissions { mode: mode_t }
8686

87-
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
87+
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
8888
pub struct FileType { mode: mode_t }
8989

9090
pub struct DirBuilder { mode: mode_t }

‎src/libstd/sys/windows/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub struct FileAttr {
3838
reparse_tag: c::DWORD,
3939
}
4040

41-
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
41+
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
4242
pub enum FileType {
4343
Dir, File, SymlinkFile, SymlinkDir, ReparsePoint, MountPoint,
4444
}

0 commit comments

Comments
 (0)
Failed to load comments.