diff --git a/crates/typos/src/tokens.rs b/crates/typos/src/tokens.rs index c5d5366..f1054b7 100644 --- a/crates/typos/src/tokens.rs +++ b/crates/typos/src/tokens.rs @@ -538,10 +538,10 @@ mod parser { trace("printf", ('%', take_while(1.., is_xid_continue)).take()).parse_next(input) } - fn take_many0(mut f: F) -> impl Parser::Slice, E> + fn take_many0(mut f: F) -> impl ModalParser::Slice, E> where I: Stream, - F: Parser::Slice, E>, + F: ModalParser::Slice, E>, E: ParserError, { move |i: &mut I| repeat(0.., f.by_ref()).map(|()| ()).take().parse_next(i)