From b427d4ed2747b7211687b9ef842152238a7d1a5e Mon Sep 17 00:00:00 2001 From: shibedrill <53824200+shibedrill@users.noreply.github.com> Date: Fri, 1 Sep 2023 18:57:09 -0400 Subject: [PATCH] Fixed some comment weirdness. --- src/main.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1a50806..dd54632 100644 --- a/src/main.rs +++ b/src/main.rs @@ -144,7 +144,8 @@ impl InformationStruct { .args(["-c", "lspci | grep VGA | awk -F 'VGA compatible controller: ' '{print $2}'"]) .output(); - // Check if running the command resulted in an error + // Check if running the command resulted in an error. If not, convert to a vector. + // TODO: Please fix this horrible logic. It needs refactoring. match command_output { Err(_) => None, Ok(output_bytes) => { @@ -163,18 +164,8 @@ impl InformationStruct { } } } - - } } - // Convert the output bytes to a String - - // Trim the string and check if it's empty or whitespace - - // Return None if the string is empty or whitespace - - // Split the string into lines and return it - } } },