mirror of
https://github.com/132nd-vWing/tacview-splitter.git
synced 2026-08-26 07:48:37 +02:00
clean up import
This commit is contained in:
+2
-3
@@ -6,8 +6,6 @@ mod writer;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
use crate::writer::OutputData;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let (input_filename, is_zip) = reader::find_input_file()?;
|
||||
println!("Processing {}", input_filename);
|
||||
@@ -17,7 +15,8 @@ fn main() -> Result<()> {
|
||||
let (header, body) = processor::split_into_header_and_body(lines)?;
|
||||
let coalition_per_line = processor::divide_body_by_coalition(&body)?;
|
||||
|
||||
let output_data = OutputData::new(input_filename, is_zip, header, body, coalition_per_line);
|
||||
let output_data =
|
||||
writer::OutputData::new(input_filename, is_zip, header, body, coalition_per_line);
|
||||
output_data.save_to_disk()?;
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user