Re:The Git source code audit, viewed as a Rust programmer
by dathinab on Tuesday January 24, 2023 @02:58PM
(#34509330)
cargo clippy is good at yelling at you for using `as`
I generally recommend starting with clippy set to pedantic and then disable all the lints which are too pedantic (or don't agree with, some lint style choices which are generally not grate but singing still got best option).
Anyway `as` is one of that "is not perfect but we need something now" design choices and most of it's usage have now better choices".
So maybe in the long future we will even see `as` depreciated and looked against in rustc without clippy.
I generally recommend starting with clippy set to pedantic and then disable all the lints which are too pedantic (or don't agree with, some lint style choices which are generally not grate but singing still got best option).
Anyway `as` is one of that "is not perfect but we need something now" design choices and most of it's usage have now better choices".
So maybe in the long future we will even see `as` depreciated and looked against in rustc without clippy.