mirror of
https://github.com/Chaoscaot/schemsearch.git
synced 2025-11-05 05:54:02 +01:00
🛠️ Fix incorrect CSV format in OutputFormat::CSV. (#10)
This commit is contained in:
2
schemsearch-cli/src/sinks.rs
Normal file → Executable file
2
schemsearch-cli/src/sinks.rs
Normal file → Executable file
@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user