Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: clippy fixes and ignores #733

Merged
merged 1 commit into from
Nov 10, 2022
Merged

Conversation

tomtau
Copy link
Contributor

@tomtau tomtau commented Nov 9, 2022

code was fixed where possible;
elsewhere it'd need API-breaking changes,
so it was just annotated to allow that for now.

@tomtau tomtau requested a review from a team November 9, 2022 13:06
@tomtau tomtau requested a review from a team as a code owner November 9, 2022 13:06
@tomtau tomtau requested review from NoahTheDuke and removed request for a team November 9, 2022 13:06
vm/src/lib.rs Outdated
Comment on lines 52 to 53
#[allow(clippy::almost_complete_letter_range)]
fn parse_rule<'a, 'i>(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pest-parser/triage One other possibility for this would be to introduce a new pub fn match_range_inclusive(mut self: Box<Self>, range: RangeInclusive<char>) -> ParseResult<Box<Self>> and use that in this function, and mark the old match_range as deprecated:

pub fn match_range(mut self: Box<Self>, range: Range<char>) -> ParseResult<Box<Self>> {

code was fixed where possible;
elsewhere it'd need API-breaking changes,
so it was just annotated to allow that for now.
Copy link

@glyn glyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@tomtau tomtau merged commit 7c021f3 into pest-parser:master Nov 10, 2022
@tomtau tomtau deleted the chore/clippy branch November 10, 2022 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants