zesterer / chumsky

Write expressive, high-performance parsers with ease.

Home Page:https://crates.io/crates/chumsky

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to compile benches: no method named `slice` found

olebedev opened this issue Β· comments

Hi there πŸ‘‹

I am trying to run benchmarks and getting bunch of error regarding missing method names:

$ cargo bench
...
error[E0599]: no method named `slice` found for struct `Repeated` in the current scope
   --> benches/lex.rs:129:53
    |
129 |         let digits = one_of(b'0'..=b'9').repeated().slice();
    |                                                     ^^^^^ method not found in `Repeated<OneOf<RangeInclusive<u8>, _, _>, _, _, _>`
...

Is there a way to get it working? I haven't really looked at the code precisely trying to fix the error, I had hoped that someone with knowledge of the library can give some tips.

Thanks!
Oleg