hotfix: use the whoami crate's implementation of username()

This commit is contained in:
Muhammad Nauman Raza 2024-03-24 16:18:37 +00:00
parent a0d8ef1b5b
commit f66110b92a

View file

@ -35,7 +35,7 @@ fn main() {
let ascii = ["(\\ /)", "( . .)", &bottom]; let ascii = ["(\\ /)", "( . .)", &bottom];
let hostname = fallible::hostname().unwrap_or(String::from("N/A")); let hostname = fallible::hostname().unwrap_or(String::from("N/A"));
let user = var("USER").unwrap(); let user = username();
let combined = format!("{}@{}", user.italic(), hostname.italic()); let combined = format!("{}@{}", user.italic(), hostname.italic());