summaryrefslogtreecommitdiffstats
path: root/vendor/pest/tests
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/pest/tests')
-rw-r--r--vendor/pest/tests/calculator.rs2
-rw-r--r--vendor/pest/tests/json.rs2
2 files changed, 4 insertions, 0 deletions
diff --git a/vendor/pest/tests/calculator.rs b/vendor/pest/tests/calculator.rs
index c5270550d..e66713364 100644
--- a/vendor/pest/tests/calculator.rs
+++ b/vendor/pest/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>>,
diff --git a/vendor/pest/tests/json.rs b/vendor/pest/tests/json.rs
index b66f39df7..be64057f7 100644
--- a/vendor/pest/tests/json.rs
+++ b/vendor/pest/tests/json.rs
@@ -38,6 +38,8 @@ enum Rule {
struct JsonParser;
impl Parser<Rule> for JsonParser {
+ // 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 json(state: Box<ParserState<'_, Rule>>) -> ParseResult<Box<ParserState<'_, Rule>>> {
value(state)