aboutsummaryrefslogtreecommitdiff
path: root/src/fexpr
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-05-01 13:29:38 +0200
committerDaniel <kingdread@gmx.de>2020-05-01 13:29:38 +0200
commit5f765b749f793b2866262546d28ff138a5654dfc (patch)
tree192add4f0c51169f8f2702596d05bee00af6561a /src/fexpr
parent811d7e62695c5c12aecd08b176c4ead641e2ad2c (diff)
downloadraidgrep-5f765b749f793b2866262546d28ff138a5654dfc.tar.gz
raidgrep-5f765b749f793b2866262546d28ff138a5654dfc.tar.bz2
raidgrep-5f765b749f793b2866262546d28ff138a5654dfc.zip
change LogFilter to take EarlyLogResult
This allows us to attach some additional metadata that is not found in the PartialEvtc otherwise, such as the file name.
Diffstat (limited to 'src/fexpr')
-rw-r--r--src/fexpr/grammar.lalrpop3
-rw-r--r--src/fexpr/mod.rs2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/fexpr/grammar.lalrpop b/src/fexpr/grammar.lalrpop
index 8674b84..4cb1849 100644
--- a/src/fexpr/grammar.lalrpop
+++ b/src/fexpr/grammar.lalrpop
@@ -4,13 +4,12 @@ use super::{
FightOutcome,
filters,
SearchField,
- Weekday,
};
use evtclib::Boss;
use std::collections::HashSet;
use lalrpop_util::ParseError;
-use chrono::{DateTime, Local, TimeZone, Utc};
+use chrono::{DateTime, Local, TimeZone, Utc, Weekday};
use regex::Regex;
grammar;
diff --git a/src/fexpr/mod.rs b/src/fexpr/mod.rs
index 5610aba..391b739 100644
--- a/src/fexpr/mod.rs
+++ b/src/fexpr/mod.rs
@@ -3,7 +3,7 @@
//! This module contains methods to parse a given string into an abstract filter tree, check its
//! type and convert it to a [`Filter`][super::filters::Filter].
// Make it available in the grammar mod.
-use super::{filters, FightOutcome, SearchField, Weekday};
+use super::{filters, FightOutcome, SearchField};
use std::{error, fmt};