2 ms·
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 p
by dathinab 4y ago
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.