From 7844de914f492bf8f09f2a79a602703870a4b6b0 Mon Sep 17 00:00:00 2001 From: iVacon Date: Mon, 19 Jun 2023 20:52:21 +0300 Subject: [PATCH] smol fix. read commit below. TODO: use pull requests --- src/main.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index d714233..048e4f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,6 +18,8 @@ fn main() { // .output() // .expect("Failed to get hostname"); + + // let hostname = String::from_utf8_lossy(&hostname.stdout); let user = env::var("USER"); @@ -149,20 +151,11 @@ fn main() { i += 1; } - -<<<<<<< HEAD - - let mut model: String = String::new(); - - if let Some(Ok(line)) = lines.next() { - model = line.split(':').nth(1).expect("Failed to parse CPU Info").trim().to_string(); -======= let mut model: String = String::new(); if let Some(Ok(line)) = lines.next() { model = line.split(':').nth(1).expect("Failed to parse CPU Info").trim().to_string(); ->>>>>>> 8afde3292bdd5b9f673658918a3b57b8237d85fd - } + } println!("┘ CPU: {}", Purple.paint(model));