Skip to content

Commit db540c3

Browse files
committed
changed code formatting
1 parent 65c8eae commit db540c3

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/main.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,25 +57,25 @@ impl PathType {
5757

5858
fn get_letter_for_type(&self) -> String {
5959
match self {
60-
Self::Dir => format!( "{}d{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset) ),
61-
Self::Symlink => format!( "{}l{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset) ),
62-
Self::Pipe => format!( "{}|{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset) ),
63-
Self::CharD => format!( "{}c{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset) ),
64-
Self::BlockD => format!( "{}b{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset) ),
65-
Self::Socket => format!( "{}s{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset) ),
66-
_ => format!( "{}.{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset) ),
60+
Self::Dir => format!("{}d{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset)),
61+
Self::Symlink => format!("{}l{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset)),
62+
Self::Pipe => format!("{}|{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset)),
63+
Self::CharD => format!("{}c{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset)),
64+
Self::BlockD => format!("{}b{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset)),
65+
Self::Socket => format!("{}s{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset)),
66+
_ => format!("{}.{}{}", self.get_color_for_type(), termion::color::Fg(termion::color::Reset), termion::color::Bg(termion::color::Reset)),
6767
}
6868
}
6969

7070
fn get_color_for_type(&self) -> String {
7171
match self {
72-
Self::Dir => format!("{}" , termion::color::Fg(termion::color::LightBlue)),
73-
Self::Symlink => format!("{}" , termion::color::Fg(termion::color::LightMagenta)),
74-
Self::Path => format!("{}" , termion::color::Fg(termion::color::White)),
75-
Self::Pipe => format!("{}" , termion::color::Fg(termion::color::Yellow)),
76-
Self::CharD => format!("{}{}", termion::color::Bg(termion::color::Yellow), termion::color::Fg(termion::color::LightBlue) ),
77-
Self::BlockD => format!("{}" , termion::color::Fg(termion::color::LightGreen)),
78-
Self::Socket => format!("{}" , termion::color::Fg(termion::color::LightRed)),
72+
Self::Dir => format!("{}" , termion::color::Fg(termion::color::LightBlue)),
73+
Self::Symlink => format!("{}" , termion::color::Fg(termion::color::LightMagenta)),
74+
Self::Path => format!("{}" , termion::color::Fg(termion::color::White)),
75+
Self::Pipe => format!("{}" , termion::color::Fg(termion::color::Yellow)),
76+
Self::CharD => format!("{}{}", termion::color::Bg(termion::color::Yellow), termion::color::Fg(termion::color::LightBlue) ),
77+
Self::BlockD => format!("{}" , termion::color::Fg(termion::color::LightGreen)),
78+
Self::Socket => format!("{}" , termion::color::Fg(termion::color::LightRed)),
7979
}
8080
}
8181

0 commit comments

Comments
 (0)