rust-random / getrandom

A small cross-platform library for retrieving random data from (operating) system source
Apache License 2.0
275 stars 180 forks source link

Replace more casts with safer conversions & enable cast-related lints. #445

Open briansmith opened 4 months ago

briansmith commented 4 months ago

I have rebased this on top of #447 and extended it to address additional Clippy feedback from that change.

briansmith commented 4 months ago

I greatly cleaned this up and moved non-type-conversion-related fixes to separate PRs. For example, the Solaris changes are now in #448.

I also separated this from #447 since there is an open discussion about how to expand the Clippy usage.

briansmith commented 3 months ago

Switching this to be a draft PR because PRs #458, #459, and #461 ended up fixing most of these. I will rebase this after those PRs have been reviewed.