mirror of
https://github.com/132nd-vWing/tacview-splitter.git
synced 2026-08-26 13:18:37 +02:00
fix output filename generation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use std::collections::HashSet;
|
||||
use std::fmt::Display;
|
||||
|
||||
#[derive(PartialEq, Clone)]
|
||||
pub enum Coalition {
|
||||
@@ -28,6 +29,21 @@ impl Coalition {
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for Coalition {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
match self {
|
||||
Self::Blue => "blue".to_string(),
|
||||
Self::Red => "red".to_string(),
|
||||
Self::Purple => "purple".to_string(),
|
||||
_ => unreachable!("We never need these variants"),
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct CoalitionIDs<'a> {
|
||||
pub blue: HashSet<&'a str>,
|
||||
pub red: HashSet<&'a str>,
|
||||
|
||||
Reference in New Issue
Block a user