]> git.lizzy.rs Git - rust.git/commitdiff
Derive Debug on FileType.
authorMartin Pool <mbp@sourcefrog.net>
Sun, 10 Jul 2016 22:37:41 +0000 (15:37 -0700)
committerMartin Pool <mbp@sourcefrog.net>
Sun, 10 Jul 2016 22:37:41 +0000 (15:37 -0700)
Partially fixes #32054

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

index 668fa1fb303601cefa74c819c7a9d2cf974fb5f0..83439b3f132153eef1009c507e2bec78318aa408 100644 (file)
@@ -141,7 +141,7 @@ pub struct File {
 
 /// An structure representing a type of file with accessors for each file type.
 #[stable(feature = "file_type", since = "1.1.0")]
-#[derive(Copy, Clone, PartialEq, Eq, Hash)]
+#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
 pub struct FileType(fs_imp::FileType);
 
 /// A builder used to create directories in various manners.
index 0524851df91abeb0c091a0a254b616388dd4b007..a004ff7afe1ecf12073f35f3a6c8af7208738f85 100644 (file)
@@ -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 }
index c243e890526f78526d1777c7de94862f0b8f87c6..5eb1cc547e489d431b5d2dc63ce4bce9d6baf71f 100644 (file)
@@ -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,
 }