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