Closed as not planned
Description
The cast_lossless lint has been made pedantic following #4528, with the reasoning being "It will only become a problem if the code changes in the future".
I am a happy user of this lint, and I find that converting always-lossless casts to from()
calls as the lint suggests clarifies the code a great deal: it makes it explicit where truncation may happen, which makes the code much easier to understand.
As such, I believe this lint is a good candidate for clippy::style
category. Perhaps its description could be revised to make the readability aspect more explicit.