Re:size_t-to-int vulnerability in Linux’s filesystem layer
by baby on Tuesday July 20, 2021 @12:52PM
(#27896159)
I wish clippy had a lint against downcasts specifically. I aso like that rust has no “int” type
[ Parent
| on HN ]
Re:size_t-to-int vulnerability in Linux’s filesystem layer
by jamincan on Wednesday July 21, 2021 @10:05AM
(#27906460)
It does, you just need to enable it. There are a bunch of other cast-related lints as well that are allow by default.
https://rust-lang.github.io/rust-clippy/v0.0.212/#cast_possi...