summaryrefslogtreecommitdiff
path: root/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/parser.rs b/src/parser.rs
index a8792d1..1c83a06 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -7,12 +7,13 @@
// option. All files in the project carrying such notice may not be copied,
// modified, or distributed except according to those terms.
-use error::Error;
-use iterators::Pairs;
-use RuleType;
+use crate::error::Error;
+use crate::iterators::Pairs;
+use crate::RuleType;
/// A trait with a single method that parses strings.
pub trait Parser<R: RuleType> {
/// Parses a `&str` starting from `rule`.
- fn parse(rule: R, input: &str) -> Result<Pairs<R>, Error<R>>;
+ #[allow(clippy::perf)]
+ fn parse(rule: R, input: &str) -> Result<Pairs<'_, R>, Error<R>>;
}