From 9edc32dd3bbc2c6e0d1fcd0aaf8f15f0548d4f03 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 24 May 2022 10:27:14 -0400 Subject: [PATCH] tamer: parse::LowerIter: Generic inner TripIter iterator This commit is preparing to compose LowerIter directly. DEV-11864 --- tamer/src/parse.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tamer/src/parse.rs b/tamer/src/parse.rs index 7687b446..43221cb9 100644 --- a/tamer/src/parse.rs +++ b/tamer/src/parse.rs @@ -715,7 +715,7 @@ impl> Parser { #[inline] pub fn lower_while_ok( &mut self, - f: impl FnOnce(&mut LowerIter) -> Result, + f: impl FnOnce(&mut LowerIter, LS>) -> Result, ) -> Result where LS: ParseState, @@ -739,7 +739,7 @@ impl> Parser { pub struct LowerIter<'a, 'b, S, I, LS> where S: ParseState, - I: TokenStream, + I: Iterator>, LS: ParseState, ::Object: Token, { @@ -750,7 +750,7 @@ where /// with the outer [`Result`] having been stripped by a [`TripIter`]. toks: &'a mut TripIter< 'b, - Parser, + I, Parsed, ParseError, >, @@ -759,7 +759,7 @@ where impl<'a, 'b, S, I, LS> Iterator for LowerIter<'a, 'b, S, I, LS> where S: ParseState, - I: TokenStream, + I: Iterator>, LS: ParseState, ::Object: Token, {