From 82108d9e3696f94c095d4253201352ca64f762b3 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 27 Apr 2024 20:19:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Fix=20incorrect=20CSV?= =?UTF-8?q?=20format=20in=20OutputFormat::CSV.=20(#10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schemsearch-cli/src/sinks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 schemsearch-cli/src/sinks.rs diff --git a/schemsearch-cli/src/sinks.rs b/schemsearch-cli/src/sinks.rs old mode 100644 new mode 100755 index 6c81f59..ac28a86 --- a/schemsearch-cli/src/sinks.rs +++ b/schemsearch-cli/src/sinks.rs @@ -71,7 +71,7 @@ impl OutputFormat { pub fn start(&self, total: u32, search_behavior: &SearchBehavior, start_time: u128) -> String { match self { OutputFormat::Text => format!("Starting search in {} schematics\n", total), - OutputFormat::CSV => format!("Name,X,Y,Z,Percent\n"), + OutputFormat::CSV => "Name,X,Y,Z,Percent\n".to_owned(), OutputFormat::JSON => format!("{}\n", serde_json::to_string(&JsonEvent::Init(InitEvent { total, search_behavior: search_behavior.clone(),