aboutsummaryrefslogtreecommitdiff
path: root/src/fexpr
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-04-21 14:23:50 +0200
committerDaniel <kingdread@gmx.de>2020-04-21 14:23:50 +0200
commit0a27adbc0bf3bbbf87fea9e55c00c38f61d55058 (patch)
treeb93fa88f0097c49fd7cc89bae257dfb63724bb56 /src/fexpr
parent0ad7a333dc2b45f0ba658ea455284d086294a088 (diff)
downloadraidgrep-0a27adbc0bf3bbbf87fea9e55c00c38f61d55058.tar.gz
raidgrep-0a27adbc0bf3bbbf87fea9e55c00c38f61d55058.tar.bz2
raidgrep-0a27adbc0bf3bbbf87fea9e55c00c38f61d55058.zip
add a small repl
Diffstat (limited to 'src/fexpr')
-rw-r--r--src/fexpr/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fexpr/mod.rs b/src/fexpr/mod.rs
index 5754d94..5610aba 100644
--- a/src/fexpr/mod.rs
+++ b/src/fexpr/mod.rs
@@ -46,9 +46,9 @@ pub enum FErrorKind {
}
/// Shortcut to create a new parser and parse the given input.
-pub fn parse_logfilter(
- input: &str,
-) -> Result<Box<dyn filters::log::LogFilter>, ParseError<usize, Token, FError>> {
+pub fn parse_logfilter<'a>(
+ input: &'a str,
+) -> Result<Box<dyn filters::log::LogFilter>, ParseError<usize, Token<'a>, FError>> {
grammar::LogFilterParser::new().parse(input)
}