From 4c22f194b5c24cf2b7d0524df0857f0f8bbc32a5 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 30 Jan 2025 15:02:50 -0600 Subject: [PATCH] refactor: Migrate from Parser to ModalParser --- crates/typos/src/tokens.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)