From 5f765b749f793b2866262546d28ff138a5654dfc Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 1 May 2020 13:29:38 +0200 Subject: 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. --- src/fexpr/grammar.lalrpop | 3 +-- src/fexpr/mod.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/fexpr') 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}; -- cgit v1.2.3