diff options
author | Daniel <kingdread@gmx.de> | 2020-04-21 14:23:50 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-04-21 14:23:50 +0200 |
commit | 0a27adbc0bf3bbbf87fea9e55c00c38f61d55058 (patch) | |
tree | b93fa88f0097c49fd7cc89bae257dfb63724bb56 /src/fexpr/mod.rs | |
parent | 0ad7a333dc2b45f0ba658ea455284d086294a088 (diff) | |
download | raidgrep-0a27adbc0bf3bbbf87fea9e55c00c38f61d55058.tar.gz raidgrep-0a27adbc0bf3bbbf87fea9e55c00c38f61d55058.tar.bz2 raidgrep-0a27adbc0bf3bbbf87fea9e55c00c38f61d55058.zip |
add a small repl
Diffstat (limited to 'src/fexpr/mod.rs')
-rw-r--r-- | src/fexpr/mod.rs | 6 |
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) } |