diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-09-23 14:50:44 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-09-23 14:50:44 +0200 |
commit | 8330abd3d42aadc30d1d819c9486c1341b4244c9 (patch) | |
tree | f38eaadd5c1e7bccb4ec5e78a284e243ad2b1212 /src/analyzers/fractals.rs | |
parent | b3090cd5687fd7c8f42e170883de87236c2f89cf (diff) | |
download | evtclib-8330abd3d42aadc30d1d819c9486c1341b4244c9.tar.gz evtclib-8330abd3d42aadc30d1d819c9486c1341b4244c9.tar.bz2 evtclib-8330abd3d42aadc30d1d819c9486c1341b4244c9.zip |
fix lints
Diffstat (limited to 'src/analyzers/fractals.rs')
-rw-r--r-- | src/analyzers/fractals.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/analyzers/fractals.rs b/src/analyzers/fractals.rs index 637096a..85063bc 100644 --- a/src/analyzers/fractals.rs +++ b/src/analyzers/fractals.rs @@ -18,13 +18,9 @@ pub const AI_HAS_DARK_MODE_SKILL: u32 = 61_356; /// If the whole log is in dark phase, `Some(0)` is returned. fn get_dark_phase_start(log: &Log) -> Option<u64> { // Determine if we even have a dark phase. - if !log.events().iter().any(|event| { - if let EventKind::SkillUse { skill_id, .. } = event.kind() { - *skill_id == AI_HAS_DARK_MODE_SKILL - } else { - false - } - }) { + if !log.events().iter().any(|event| + matches!(event.kind(), EventKind::SkillUse { skill_id, ..} if *skill_id == AI_HAS_DARK_MODE_SKILL) + ) { return None; }; |