littlefs2 icon indicating copy to clipboard operation
littlefs2 copied to clipboard

Review numeric casts

Open robin-nitrokey opened this issue 7 months ago • 0 comments

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.

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.)

robin-nitrokey avatar Jul 18 '24 09:07 robin-nitrokey