diff options
author | Laurentiu Nicola <lnicola@dend.ro> | 2017-05-16 20:18:18 +0300 |
---|---|---|
committer | Paul Masurel <paul.masurel@gmail.com> | 2017-05-17 15:50:07 +0900 |
commit | 6fea510869c0211d209a9c2c0021f2b0d04ae331 (patch) | |
tree | a0987757ca51934dfcf1dbb5a347c75021d90e71 /src/query | |
parent | 39958ec476cf9d4561061e1bce4619ce1d0ba1cc (diff) |
clippy: fix redundant_closure warnings
Diffstat (limited to 'src/query')
-rw-r--r-- | src/query/query_parser/query_grammar.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/query/query_parser/query_grammar.rs b/src/query/query_parser/query_grammar.rs index ec45a56..08f167b 100644 --- a/src/query/query_parser/query_grammar.rs +++ b/src/query/query_parser/query_grammar.rs @@ -34,7 +34,7 @@ fn literal<I>(input: I) -> ParseResult<UserInputAST, I> }); try(term_query) .or(term_default_field) - .map(|query_literal| UserInputAST::from(query_literal)) + .map(UserInputAST::from) .parse_stream(input) } |