We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I suggest to add a lint, when the time is ripe, that suggests to replace some "as" integer casts with the nicer signed/unsigned cast functions:
rust-lang/rust#125882
It's a little safer than as casts, and it isn't easy to remember that such standard functions exist.
No response
<code>
Could be written as:
The text was updated successfully, but these errors were encountered:
I think it's the same as #14150?
Sorry, something went wrong.
Yes, so I close this down, thank you.
No branches or pull requests
What it does
I suggest to add a lint, when the time is ripe, that suggests to replace some "as" integer casts with the nicer signed/unsigned cast functions:
rust-lang/rust#125882
Advantage
It's a little safer than as casts, and it isn't easy to remember that such standard functions exist.
Drawbacks
No response
Example
<code>
Could be written as:
<code>
The text was updated successfully, but these errors were encountered: