diff options
| author | Ben S <ogham@bsago.me> | 2014-11-24 19:04:54 +0000 |
|---|---|---|
| committer | Ben S <ogham@bsago.me> | 2014-11-24 23:01:15 +0000 |
| commit | 3b9dfd6af04ca008a4c2ef13b7fd2e8433dc473f (patch) | |
| tree | f07344845ab95802de42397fd1c5827c292fe25e /src/test | |
| parent | 4334d3c19699c65ba8cb354f84fa40e4b678bfa6 (diff) | |
| download | rust-3b9dfd6af04ca008a4c2ef13b7fd2e8433dc473f.tar.gz rust-3b9dfd6af04ca008a4c2ef13b7fd2e8433dc473f.zip | |
Clean up FileType enum following enum namespacing
All of the enum components had a redundant 'Type' specifier: TypeSymlink, TypeDirectory, TypeFile. This change removes them, replacing them with a namespace: FileType::Symlink, FileType::Directory, and FileType::RegularFile. RegularFile is used instead of just File, as File by itself could be mistakenly thought of as referring to the struct. [breaking-change]
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/issue-18619.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/issue-18619.rs b/src/test/run-pass/issue-18619.rs index 70ccc20e01a..a885513611d 100644 --- a/src/test/run-pass/issue-18619.rs +++ b/src/test/run-pass/issue-18619.rs @@ -11,5 +11,5 @@ use std::io::FileType; pub fn main() { - let _ = FileType::TypeFile.clone(); + let _ = FileType::RegularFile.clone(); } |
