fix output filename generation

This commit is contained in:
132nd-Professor
2022-08-12 17:23:16 +02:00
parent fd800ce394
commit c1ef22f3a3
5 changed files with 46 additions and 13 deletions
+16
View File
@@ -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>,