mirror of
https://github.com/crate-ci/typos.git
synced 2025-02-13 08:40:29 -05:00
refactor: Migrate from Parser to ModalParser
This commit is contained in:
parent
7830eb8730
commit
4c22f194b5
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue