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
This crate contains many numeric casts. Some of them can be problematic, at least if u32 does not fit in usize on the target platform.
u32
usize
We should therefore review these casts and probably enable the cast_lossless, cast_possible_truncation, cast_possible_wrap, cast_sign_loss lints. (Personally I’d like to enable as_conversions but we often need it for pointer conversions.)
cast_lossless
cast_possible_truncation
cast_possible_wrap
cast_sign_loss
as_conversions
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This crate contains many numeric casts. Some of them can be problematic, at least if
u32
does not fit inusize
on the target platform.We should therefore review these casts and probably enable the
cast_lossless
,cast_possible_truncation
,cast_possible_wrap
,cast_sign_loss
lints. (Personally I’d like to enableas_conversions
but we often need it for pointer conversions.)The text was updated successfully, but these errors were encountered: