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

const-oid: add clippy lints for checked arithmetic and panics #561

Merged

Conversation

tarcieri
Copy link
Member

Enforces checked arithmetic (where possible) and that production builds don't use panicking macros.

For now some of the arithmetic is annotated with an explicit allow, along with an explanation of why it shouldn't overflow.

Enforces checked arithmetic (where possible) and that production builds
don't use panicking macros.

For now some of the arithmetic is annotated with an explicit allow,
along with an explanation of why it shouldn't overflow.
@tarcieri tarcieri merged commit 131956a into master Mar 30, 2022
@tarcieri tarcieri deleted the const-oid/clippy-lints-for-checked-arithmetic-and-panics branch March 30, 2022 03:25
@tarcieri tarcieri mentioned this pull request Nov 12, 2022
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.

None yet

1 participant