refactor: use an array directly
This commit is contained in:
parent
fb31db723f
commit
8a3162bfbd
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -16,7 +16,7 @@ checksum = "7ff69b9dd49fd426c69a0db9fc04dd934cdb6645ff000864d98f7e2af8830eaa"
|
|||
|
||||
[[package]]
|
||||
name = "bunbun"
|
||||
version = "0.2.0"
|
||||
version = "1.0.0"
|
||||
dependencies = [
|
||||
"colored",
|
||||
"sysinfo",
|
||||
|
|
|
@ -5,7 +5,7 @@ use std::env;
|
|||
|
||||
fn main() {
|
||||
let bottom = format!("c({})({})", "\"".red(), "\"".red()).to_string();
|
||||
let ascii = vec!["(\\ /)", "( . .)", &bottom];
|
||||
let ascii = ["(\\ /)", "( . .)", &bottom];
|
||||
|
||||
let hostname = fallible::hostname().unwrap_or(String::from("N/A"));
|
||||
let user = env!("USER");
|
||||
|
|
Loading…
Reference in a new issue