aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-09-23 14:50:44 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-09-23 14:50:44 +0200
commit8330abd3d42aadc30d1d819c9486c1341b4244c9 (patch)
treef38eaadd5c1e7bccb4ec5e78a284e243ad2b1212 /src/lib.rs
parentb3090cd5687fd7c8f42e170883de87236c2f89cf (diff)
downloadevtclib-8330abd3d42aadc30d1d819c9486c1341b4244c9.tar.gz
evtclib-8330abd3d42aadc30d1d819c9486c1341b4244c9.tar.bz2
evtclib-8330abd3d42aadc30d1d819c9486c1341b4244c9.zip
fix lints
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib.rs b/src/lib.rs
index babfc34..0c934ec 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -900,13 +900,9 @@ impl Log {
/// [`Analyzer::outcome`][Analyzer::outcome] method, which does more sophisticated checks
/// (dependent on the boss).
pub fn was_rewarded(&self) -> bool {
- self.events().iter().any(|e| {
- if let EventKind::Reward { .. } = e.kind() {
- true
- } else {
- false
- }
- })
+ self.events()
+ .iter()
+ .any(|e| matches!(e.kind(), EventKind::Reward { .. }))
}
/// Returns all error strings that were captured.