diff options
| author | bors <bors@rust-lang.org> | 2016-07-12 06:54:46 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-12 06:54:46 -0700 |
| commit | 3085ec78487712ed77a506d9cba8d69cd3a44684 (patch) | |
| tree | e39bdd1c36af215f5a2cd65da7146f049e5252bf /src/libstd/sys | |
| parent | 31e9ed5d6cf567557d2219add7afedae93aaf2a5 (diff) | |
| parent | bba33ecd8685e2ecb83d40abd9682d7dc2536382 (diff) | |
| download | rust-3085ec78487712ed77a506d9cba8d69cd3a44684.tar.gz rust-3085ec78487712ed77a506d9cba8d69cd3a44684.zip | |
Auto merge of #34757 - sourcefrog:debug-filetype, r=alexcrichton
Derive Debug on FileType. Partially fixes #32054
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/fs.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/windows/fs.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs index 0524851df91..a004ff7afe1 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -84,7 +84,7 @@ pub struct OpenOptions { #[derive(Clone, PartialEq, Eq, Debug)] pub struct FilePermissions { mode: mode_t } -#[derive(Copy, Clone, PartialEq, Eq, Hash)] +#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)] pub struct FileType { mode: mode_t } pub struct DirBuilder { mode: mode_t } diff --git a/src/libstd/sys/windows/fs.rs b/src/libstd/sys/windows/fs.rs index 38a17caa2f6..2683e57256d 100644 --- a/src/libstd/sys/windows/fs.rs +++ b/src/libstd/sys/windows/fs.rs @@ -38,7 +38,7 @@ pub struct FileAttr { reparse_tag: c::DWORD, } -#[derive(Copy, Clone, PartialEq, Eq, Hash)] +#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)] pub enum FileType { Dir, File, SymlinkFile, SymlinkDir, ReparsePoint, MountPoint, } |
