summaryrefslogtreecommitdiff
path: root/tests/calculator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/calculator.rs')
-rw-r--r--tests/calculator.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/calculator.rs b/tests/calculator.rs
index c527055..e667133 100644
--- a/tests/calculator.rs
+++ b/tests/calculator.rs
@@ -32,6 +32,8 @@ enum Rule {
struct CalculatorParser;
impl Parser<Rule> for CalculatorParser {
+ // false positive: pest uses `..` as a complete range (historically)
+ #[allow(clippy::almost_complete_range)]
fn parse(rule: Rule, input: &str) -> Result<Pairs<Rule>, Error<Rule>> {
fn expression(
state: Box<ParserState<'_, Rule>>,