fix some lints

This commit is contained in:
132nd-Professor
2022-08-12 16:48:43 +02:00
parent d7db52fc2d
commit a35ff8b362
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -40,13 +40,12 @@ impl<'a> CoalitionIDs<'a> {
Self { blue, red, purple }
}
pub fn insert(&mut self, id: &'a str, coalition: Coalition) {
pub fn insert(&mut self, id: &'a str, coalition: &Coalition) {
match coalition {
Coalition::Blue => self.blue.insert(id),
Coalition::Red => self.red.insert(id),
Coalition::Purple => self.purple.insert(id),
Coalition::All => false,
Coalition::Unknown => false,
Coalition::All | Coalition::Unknown => false,
};
}
}