• B
    Clean up FileType enum following enum namespacing · 3b9dfd6a
    Ben S 提交于
    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]
    3b9dfd6a
fs.rs 12.3 KB