Code Review

This commit is contained in:
Your Name 2018-12-10 12:47:16 +02:00 committed by Pierre Peltier
parent dc720e5403
commit 447b0e93c3
2 changed files with 3 additions and 4 deletions

View file

@ -15,6 +15,7 @@ pub enum Elem {
CharDevice,
Socket,
Special,
ExecutableFile,
/// Permissions
Read,
@ -37,9 +38,6 @@ pub enum Elem {
FileLarge,
FileMedium,
FileSmall,
/// Misc
ExecutableFile,
}
pub type ColoredString<'a> = ANSIString<'a>;
@ -110,7 +108,7 @@ impl Colors {
m.insert(Elem::FileSmall, Colour::Fixed(229)); // Wheat1
m.insert(Elem::FileMedium, Colour::Fixed(216)); // LightSalmon1
m.insert(Elem::FileLarge, Colour::Fixed(172)); // Orange3
m.insert(Elem::ExecutableFile, Colour::Fixed(47)); // Green
m.insert(Elem::ExecutableFile, Colour::Fixed(40)); // Green3
m
}

View file

@ -64,6 +64,7 @@ impl Meta {
permissions,
name,
file_type,
permissions,
})
}
}