aboutsummaryrefslogtreecommitdiff
path: root/src/naive_parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/naive_parser.rs')
-rw-r--r--src/naive_parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/naive_parser.rs b/src/naive_parser.rs
index e229592..ecf170a 100644
--- a/src/naive_parser.rs
+++ b/src/naive_parser.rs
@@ -19,7 +19,7 @@ pub struct NaiveParser<R: Reader, O: Offset, E: Emitter<O>> {
tokenizer: Tokenizer<R, O, E>,
}
-impl<R: Reader, O: Offset> NaiveParser<R, O, DefaultEmitter<O>> {
+impl<R: Reader + Position<O>, O: Offset> NaiveParser<R, O, DefaultEmitter<O>> {
/// Constructs a new naive parser.
// TODO: add example for NaiveParser::new
pub fn new<'a>(reader: impl IntoReader<'a, Reader = R>) -> Self {
@@ -39,7 +39,7 @@ impl<R: Reader + Position<usize>> NaiveParser<R, usize, DefaultEmitter<usize>> {
}
}
-impl<R: Reader, O: Offset, E: Emitter<O>> NaiveParser<R, O, E> {
+impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> NaiveParser<R, O, E> {
/// Constructs a new naive parser with a custom emitter.
// TODO: add example for NaiveParser::new_with_emitter
pub fn new_with_emitter<'a>(reader: impl IntoReader<'a, Reader = R>, emitter: E) -> Self {