mirror of
https://github.com/132nd-vWing/tacview-splitter.git
synced 2026-08-26 08:38:36 +02:00
fix some lints
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ impl Line {
|
||||
) -> Coalition {
|
||||
if Coalition::line_contains_coalition(line) {
|
||||
let coalition = Coalition::from_line(line);
|
||||
coalition_ids.insert(id, coalition.clone());
|
||||
coalition_ids.insert(id, &coalition);
|
||||
coalition
|
||||
} else {
|
||||
Coalition::Unknown
|
||||
|
||||
+2
-3
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user