From 331dbac270273889111a3cd4bb73d16eeaf5ebde Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 12 May 2020 14:03:57 +0200 Subject: use Display implementations from evtclib --- src/filters/log.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/filters/log.rs') 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 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) } } -- cgit v1.2.3