From 14c30a92dc77f3606cc1766e69168bc1530ca1b4 Mon Sep 17 00:00:00 2001 From: ravenclaw900 <50060110+ravenclaw900@users.noreply.github.com> Date: Mon, 11 Oct 2021 18:03:00 -0500 Subject: [PATCH] =?UTF-8?q?fix(software):=20fix=20serialization=20by=20rem?= =?UTF-8?q?oving=20`=1B`=20(color)=20control=20character?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/src/sockets.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/backend/src/sockets.rs b/src/backend/src/sockets.rs index be532727..32142e06 100644 --- a/src/backend/src/sockets.rs +++ b/src/backend/src/sockets.rs @@ -107,11 +107,8 @@ async fn software_handler( log::info!("{}ing software with ID(s) {:?}", data.cmd, data.args); let out = std::string::String::from_utf8(cmd.args(arg_list).output().unwrap().stdout) - .unwrap(); - dbg!(SerJson::serialize_json(&types::DPSoftwareList { - software: systemdata::dpsoftware(), - response: out, - })); + .unwrap() + .replace("", ""); let _send = socket_send .send(Message::text(SerJson::serialize_json( &types::DPSoftwareList {