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

ndk: Remove and warn on trivial casts #219

Merged
merged 1 commit into from
Mar 16, 2022
Merged

ndk: Remove and warn on trivial casts #219

merged 1 commit into from
Mar 16, 2022

Conversation

MarijnS95
Copy link
Member

trivial-casts is allowed by default as it still has some odd cases where the lint triggers incorrectly or is difficult to fix. For our intents and purposes however it works just fine and prevents against riddling the code with unnecessary - usually untyped - as casts.

https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#explanation-22

CC @zarik5, #216

ndk/src/configuration.rs Outdated Show resolved Hide resolved
`trivial-casts` is allowed by default as it still has some odd cases
where the lint triggers incorrectly or is difficult to fix.  For our
intents and purposes however it works just fine and prevents against
riddling the code with unnecessary - usually untyped - `as` casts.

https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#explanation-22
@MarijnS95 MarijnS95 merged commit d53b58f into master Mar 16, 2022
@MarijnS95 MarijnS95 deleted the trivial-casts branch March 16, 2022 21:56
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