diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-09-28 13:19:50 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-09-28 13:19:50 +0200 |
commit | 4be9a3bac6fda057e5c95f605c320bec2a278e68 (patch) | |
tree | 9352b3b7e0f94c765945154bac687d66ccb709e8 | |
parent | 183d45f347719ff1e7bdcf26663ef78de178d841 (diff) | |
download | evtclib-4be9a3bac6fda057e5c95f605c320bec2a278e68.tar.gz evtclib-4be9a3bac6fda057e5c95f605c320bec2a278e68.tar.bz2 evtclib-4be9a3bac6fda057e5c95f605c320bec2a278e68.zip |
fix formatting
-rw-r--r-- | src/analyzers/raids/mod.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 5 | ||||
-rw-r--r-- | tests/parsing.rs | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/analyzers/raids/mod.rs b/src/analyzers/raids/mod.rs index a0602b0..7b636a7 100644 --- a/src/analyzers/raids/mod.rs +++ b/src/analyzers/raids/mod.rs @@ -19,7 +19,7 @@ mod w5; pub use w5::{Dhuum, SoullessHorror}; mod w6; -pub use w6::{ConjuredAmalgamate, TwinLargos, Qadim}; +pub use w6::{ConjuredAmalgamate, Qadim, TwinLargos}; mod w7; pub use w7::{CardinalAdina, CardinalSabir, QadimThePeerless}; @@ -759,7 +759,10 @@ impl Log { /// This correctly returns multiple agents on encounters where multiple /// agents are needed. pub fn boss_agents(&self) -> Vec<&Agent> { - let bosses = self.encounter().map(Encounter::bosses).unwrap_or(&[] as &[_]); + let bosses = self + .encounter() + .map(Encounter::bosses) + .unwrap_or(&[] as &[_]); self.npcs() .filter(|c| bosses.iter().any(|boss| *boss as u16 == c.character().id)) .map(Agent::erase) diff --git a/tests/parsing.rs b/tests/parsing.rs index f0a4871..08922c9 100644 --- a/tests/parsing.rs +++ b/tests/parsing.rs @@ -3,7 +3,7 @@ use std::fs::File; use std::io::BufReader; -use evtclib::{Encounter, EliteSpec::*, Profession::*}; +use evtclib::{EliteSpec::*, Encounter, Profession::*}; macro_rules! test { (name: $name:ident, log: $log:literal, boss: $boss:expr, players: $players:expr,) => { |