diff options
| author | David Henningsson <diwic@ubuntu.com> | 2016-10-16 20:38:56 +0200 |
|---|---|---|
| committer | David Henningsson <diwic@ubuntu.com> | 2016-10-16 20:42:55 +0200 |
| commit | e4ed345b2ca84db1b3300661aa3940afc0c0cbf0 (patch) | |
| tree | 5fee90aab6c5a451d27dac06baf4652f4d997087 /src/libstd/fs.rs | |
| parent | 6dc035ed911672c6a1f7afc9eed15fb08e574e5b (diff) | |
| download | rust-e4ed345b2ca84db1b3300661aa3940afc0c0cbf0.tar.gz rust-e4ed345b2ca84db1b3300661aa3940afc0c0cbf0.zip | |
impl Debug for ReadDir
It is good practice to implement Debug for public types, and indicating what directory you're reading seems useful. Signed-off-by: David Henningsson <diwic@ubuntu.com>
Diffstat (limited to 'src/libstd/fs.rs')
| -rw-r--r-- | src/libstd/fs.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 5bb5183fd6a..df5741d00a2 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -83,6 +83,7 @@ pub struct Metadata(fs_imp::FileAttr); /// /// [`io::Result`]: ../io/type.Result.html #[stable(feature = "rust1", since = "1.0.0")] +#[derive(Debug)] pub struct ReadDir(fs_imp::ReadDir); /// Entries returned by the [`ReadDir`] iterator. |
