mirror of
https://github.com/crate-ci/typos.git
synced 2026-11-11 08:33:59 +01:00
refactor: Migrate from Parser to ModalParser
This commit is contained in:
1 parent
7830eb8730
commit
4c22f194b5
1 file changed
+2
-2
@@ -538,10 +538,10 @@ mod parser {
|
||||
trace("printf", ('%', take_while(1.., is_xid_continue)).take()).parse_next(input)
|
||||
}
|
||||
|
||||
fn take_many0<I, E, F>(mut f: F) -> impl Parser<I, <I as Stream>::Slice, E>
|
||||
fn take_many0<I, E, F>(mut f: F) -> impl ModalParser<I, <I as Stream>::Slice, E>
|
||||
where
|
||||
I: Stream,
|
||||
F: Parser<I, <I as Stream>::Slice, E>,
|
||||
F: ModalParser<I, <I as Stream>::Slice, E>,
|
||||
E: ParserError<I>,
|
||||
{
|
||||
move |i: &mut I| repeat(0.., f.by_ref()).map(|()| ()).take().parse_next(i)
|
||||
|
||||
Reference in new issue
Block a user