aboutsummaryrefslogtreecommitdiff
path: root/src/analyzers/mod.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-07-23 17:41:52 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-07-23 17:41:52 +0200
commit6a4e302e49bea67cfd2ce240bc0de284967540c1 (patch)
treeb769c3524e5816c0fe9a0f5df0b7cc1692bde957 /src/analyzers/mod.rs
parentd2a3a49dc4759ede6cc9f553955eb289477a9d74 (diff)
downloadevtclib-6a4e302e49bea67cfd2ce240bc0de284967540c1.tar.gz
evtclib-6a4e302e49bea67cfd2ce240bc0de284967540c1.tar.bz2
evtclib-6a4e302e49bea67cfd2ce240bc0de284967540c1.zip
remove default implementation of Analyzer::outcome
This was only there to make it easier to gradually implement the outcome method for the individual bosses. Now that each boss has a proper outcome, we no longer need the default method - in fact, I'd rather make sure the compiler tells us if we forget to implement this method in a new analyzer.
Diffstat (limited to 'src/analyzers/mod.rs')
-rw-r--r--src/analyzers/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/analyzers/mod.rs b/src/analyzers/mod.rs
index f2cd2c7..880e5df 100644
--- a/src/analyzers/mod.rs
+++ b/src/analyzers/mod.rs
@@ -63,9 +63,7 @@ pub trait Analyzer {
///
/// Note that not all logs need to have an outcome, e.g. WvW or Golem logs may return `None`
/// here.
- fn outcome(&self) -> Option<Outcome> {
- None
- }
+ fn outcome(&self) -> Option<Outcome>;
}
/// Returns the correct [`Analyzer`][Analyzer] for the given log file.