aboutsummaryrefslogtreecommitdiff
path: root/src/fexpr/mod.rs
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2021-11-12 14:08:35 +0100
committerDaniel <kingdread@gmx.de>2021-11-12 14:08:35 +0100
commit2e2bdac00092f8fcb96283da697a7a820a8c8978 (patch)
tree6a49f4f852c39a261d7210a002d6f39dc377a581 /src/fexpr/mod.rs
parent14d90bcbe6cef70d0ab99cb3285038fbd6385efa (diff)
downloadraidgrep-2e2bdac00092f8fcb96283da697a7a820a8c8978.tar.gz
raidgrep-2e2bdac00092f8fcb96283da697a7a820a8c8978.tar.bz2
raidgrep-2e2bdac00092f8fcb96283da697a7a820a8c8978.zip
Minor code smell fixes
Diffstat (limited to 'src/fexpr/mod.rs')
-rw-r--r--src/fexpr/mod.rs13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/fexpr/mod.rs b/src/fexpr/mod.rs
index 90242f2..0fe2acf 100644
--- a/src/fexpr/mod.rs
+++ b/src/fexpr/mod.rs
@@ -22,7 +22,6 @@ lalrpop_mod!(#[allow(clippy::all)] pub grammar, "/fexpr/grammar.rs");
#[derive(Debug)]
pub struct FError {
location: usize,
- data: String,
kind: FErrorKind,
}
@@ -41,17 +40,17 @@ impl error::Error for FError {
#[derive(Debug, Error)]
pub enum FErrorKind {
#[error("invalid regular expression: {0}")]
- InvalidRegex(#[from] regex::Error),
+ Regex(#[from] regex::Error),
#[error("invalid fight outcome")]
- InvalidFightOutcome,
+ FightOutcome,
#[error("invalid weekday")]
- InvalidWeekday,
+ Weekday,
#[error("invalid timestamp: {0}")]
- InvalidTimestamp(#[from] chrono::format::ParseError),
+ Timestamp(#[from] chrono::format::ParseError),
#[error("invalid boss name")]
- InvalidBoss,
+ Boss,
#[error("invalid class name")]
- InvalidClass,
+ Class,
}
/// Shortcut to create a new parser and parse the given input.