Skip to content

Commit 29e966c

Browse files
committed
removed the quotes from name
1 parent 9e74938 commit 29e966c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/main.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,14 @@ fn main() -> io::Result<()> {
9292
}
9393

9494
print!("{}", color::Fg(color::Yellow));
95-
print!(" {:?} ", get_user_by_uid(get_current_uid()).unwrap().name());
95+
print!(
96+
" {} ",
97+
get_user_by_uid(get_current_uid())
98+
.unwrap()
99+
.name()
100+
.to_str()
101+
.unwrap()
102+
);
96103

97104
print!("{}", color::Fg(color::White));
98105
if e.metadata()?.is_dir() {

0 commit comments

Comments
 (0)