mirror of
https://github.com/132nd-vWing/tacview-splitter.git
synced 2026-08-26 09:48:36 +02:00
Descriptors: constructor is now generic
This commit is contained in:
+2
-2
@@ -24,10 +24,10 @@ fn main() {
|
||||
|
||||
let output_filenames = get_output_filenames(&input_filename);
|
||||
if is_zip {
|
||||
let mut descriptors = lib::Descriptors::new_for_zip(output_filenames);
|
||||
let mut descriptors = lib::Descriptors::<zip::ZipWriter<fs::File>>::new(output_filenames);
|
||||
descriptors.write(header, bodies_by_coalition);
|
||||
} else {
|
||||
let mut descriptors = lib::Descriptors::new_for_file(output_filenames);
|
||||
let mut descriptors = lib::Descriptors::<fs::File>::new(output_filenames);
|
||||
descriptors.write(header, bodies_by_coalition);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user