You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running cargo clippy over async-graphql crate which uses pest v2.7.11.
warning: almost complete ascii range
--> parser/src/parse/generated.rs:2312:29
|
2312 | state.match_range('0'..'9')
| ^^^--^^^
| |
| help: use an inclusive range: `..=`
|
= help:for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#almost_complete_range
= note: `#[warn(clippy::almost_complete_range)]` on by default
Yes, that's an old choice in Pest that it matches ranges inclusively and changing it would be a breaking change. @xamgore you can mute the clippy warning yourself, or do you suggest adding the clippy ignore in the generated code?
I am running
cargo clippy
overasync-graphql
crate which uses pestv2.7.11
.As we can see at vm.rs and generator.rs, range is included in fact.
As pest uses
0..9
just for expressiveness, I would either mute clippy at the generated code, or switched to0..=9
(affects MSRV).The text was updated successfully, but these errors were encountered: