aboutsummaryrefslogtreecommitdiff
path: root/src/filters/log.rs
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-05-12 14:03:57 +0200
committerDaniel <kingdread@gmx.de>2020-05-12 14:04:54 +0200
commit331dbac270273889111a3cd4bb73d16eeaf5ebde (patch)
treef9bff785f8bb0faa9476e153a63013f12031cfcc /src/filters/log.rs
parent371186e872df3518bb5a2894f487ec02a42c771a (diff)
downloadraidgrep-331dbac270273889111a3cd4bb73d16eeaf5ebde.tar.gz
raidgrep-331dbac270273889111a3cd4bb73d16eeaf5ebde.tar.bz2
raidgrep-331dbac270273889111a3cd4bb73d16eeaf5ebde.zip
use Display implementations from evtclib
Diffstat (limited to 'src/filters/log.rs')
-rw-r--r--src/filters/log.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/filters/log.rs b/src/filters/log.rs
index 79513d5..8cfdcb4 100644
--- a/src/filters/log.rs
+++ b/src/filters/log.rs
@@ -33,8 +33,7 @@ impl Filter<EarlyLogResult, LogResult> for BossFilter {
}
fn filter(&self, log: &LogResult) -> bool {
- let boss = Boss::from_u16(log.boss_id);
- boss.map(|b| self.0.contains(&b)).unwrap_or(false)
+ log.boss.map(|b| self.0.contains(&b)).unwrap_or(false)
}
}