mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 06:02:36 +00:00
Code Review
This commit is contained in:
parent
dc720e5403
commit
447b0e93c3
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -64,6 +64,7 @@ impl Meta {
|
|||
permissions,
|
||||
name,
|
||||
file_type,
|
||||
permissions,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue