aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-09-28 13:19:50 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-09-28 13:19:50 +0200
commit4be9a3bac6fda057e5c95f605c320bec2a278e68 (patch)
tree9352b3b7e0f94c765945154bac687d66ccb709e8 /src/lib.rs
parent183d45f347719ff1e7bdcf26663ef78de178d841 (diff)
downloadevtclib-4be9a3bac6fda057e5c95f605c320bec2a278e68.tar.gz
evtclib-4be9a3bac6fda057e5c95f605c320bec2a278e68.tar.bz2
evtclib-4be9a3bac6fda057e5c95f605c320bec2a278e68.zip
fix formatting
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2233c93..ecdc876 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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)