mirror of
https://github.com/132nd-vWing/tacview-splitter.git
synced 2026-08-26 11:28:37 +02:00
rename divide_body_by_coalition
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ fn main() -> Result<()> {
|
|||||||
let lines = reader::read_data(&input_filename, is_zip)?;
|
let lines = reader::read_data(&input_filename, is_zip)?;
|
||||||
|
|
||||||
let (header, body) = processor::split_into_header_and_body(lines)?;
|
let (header, body) = processor::split_into_header_and_body(lines)?;
|
||||||
let coalition_per_line = processor::divide_body_by_coalition(&body)?;
|
let coalition_per_line = processor::get_coalition_per_line(&body)?;
|
||||||
|
|
||||||
let output_data =
|
let output_data =
|
||||||
writer::OutputData::new(input_filename, is_zip, header, body, coalition_per_line);
|
writer::OutputData::new(input_filename, is_zip, header, body, coalition_per_line);
|
||||||
|
|||||||
+1
-1
@@ -29,7 +29,7 @@ where
|
|||||||
Ok((lines, body))
|
Ok((lines, body))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn divide_body_by_coalition<S>(body: &[S]) -> Result<Vec<Coalition>>
|
pub fn get_coalition_per_line<S>(body: &[S]) -> Result<Vec<Coalition>>
|
||||||
where
|
where
|
||||||
S: AsRef<str>,
|
S: AsRef<str>,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user