Skip to content

Commit 55c609a

Browse files
committed
formatted code to be all aligned the same
1 parent 4b6fc53 commit 55c609a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/main.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,25 @@ impl PathType {
7070

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

8383
fn get_text_traits_for_type(&self, name: &str, file: &std::path::PathBuf) -> String {
8484
match self {
85-
Self::Dir => text_effects::bold(&format!( "{}{}/", name, termion::color::Fg(termion::color::White) )),
85+
Self::Dir => text_effects::bold(&format!( "{}{}/" , name, termion::color::Fg(termion::color::White) )),
8686
Self::Symlink => text_effects::italic(&format!( "{} -> {}", name, std::fs::read_link(file).unwrap().display().to_string() )),
87-
Self::Path => text_effects::bold(name),
88-
Self::Pipe => text_effects::bold(&format!( "{}{}|", name, termion::color::Fg(termion::color::White) )),
89-
Self::CharD => text_effects::bold(name),
90-
Self::BlockD => text_effects::bold(name),
91-
Self::Socket => text_effects::bold(&format!( "{}{}=", name, termion::color::Fg(termion::color::White) )),
87+
Self::Path => text_effects::bold(name) ,
88+
Self::Pipe => text_effects::bold(&format!( "{}{}" , name, termion::color::Fg(termion::color::White) )),
89+
Self::CharD => text_effects::bold(name) ,
90+
Self::BlockD => text_effects::bold(name) ,
91+
Self::Socket => text_effects::bold(&format!( "{}{}" , name, termion::color::Fg(termion::color::White) )),
9292
}
9393
}
9494
}

0 commit comments

Comments
 (0)