diff options
author | Daniel <kingdread@gmx.de> | 2020-10-04 12:04:19 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-10-04 12:04:19 +0200 |
commit | dd46cead3d4b5aaf5731f5e5104927651f3e2b64 (patch) | |
tree | 2e99e0299d2363a97a8cb92275260677a66169f1 /src/filters/log.rs | |
parent | 5ae375078d981e9efb3ac6ea68572f941fc883cf (diff) | |
download | raidgrep-dd46cead3d4b5aaf5731f5e5104927651f3e2b64.tar.gz raidgrep-dd46cead3d4b5aaf5731f5e5104927651f3e2b64.tar.bz2 raidgrep-dd46cead3d4b5aaf5731f5e5104927651f3e2b64.zip |
use Encounter::from_header_id
Diffstat (limited to 'src/filters/log.rs')
-rw-r--r-- | src/filters/log.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/filters/log.rs b/src/filters/log.rs index bd02b21..ac166e1 100644 --- a/src/filters/log.rs +++ b/src/filters/log.rs @@ -12,7 +12,6 @@ use std::collections::HashSet; use evtclib::Encounter; use chrono::{DateTime, Datelike, Utc, Weekday}; -use num_traits::FromPrimitive as _; /// Filter trait used for filters that operate on complete logs. pub trait LogFilter = Filter<EarlyLogResult, LogResult>; @@ -22,7 +21,7 @@ struct BossFilter(HashSet<Encounter>); impl Filter<EarlyLogResult, LogResult> for BossFilter { fn filter_early(&self, early_log: &EarlyLogResult) -> Inclusion { - let boss = Encounter::from_u16(early_log.evtc.header.combat_id); + let boss = Encounter::from_header_id(early_log.evtc.header.combat_id); boss.map(|b| self.0.contains(&b).into()) .unwrap_or(Inclusion::Exclude) } |