bors 483b7ac918 Auto merge of #10038 - xFrednet:9231-sugg-try-from, r=Jarcho
`cast_possible_truncation` Suggest TryFrom when truncation possible

This fixes the last issues from https://github.com/rust-lang/rust-clippy/pull/9664 as the author seems to be inactive. The PR author was sadly kept during the rebase, due to the conflict resolution.

IDK if it's worth it do to a full review, I only added the last commit, everything else remained the same, besides a rebase.

---

changelog: Sugg: [`cast_possible_truncation`]: Now suggests using `try_from` or allowing the lint
[#10038](https://github.com/rust-lang/rust-clippy/pull/10038)
<!-- changelog_checked -->

closes: https://github.com/rust-lang/rust-clippy/issues/9231
2023-01-14 16:04:51 +00:00
..
2023-01-08 20:25:42 +01:00
2023-01-08 20:25:42 +01:00
2023-01-08 20:25:42 +01:00
2023-01-12 12:37:56 +01:00
2023-01-12 12:37:56 +01:00
2023-01-02 12:09:26 -05:00
fix
2023-01-12 14:22:18 +01:00
fix
2023-01-12 14:22:18 +01:00
fix
2023-01-12 14:22:18 +01:00
2023-01-10 11:12:54 +01:00
fix
2023-01-12 14:22:18 +01:00
fix
2023-01-05 18:30:13 +09:00
fix
2023-01-05 18:30:13 +09:00
fix
2023-01-05 18:30:13 +09:00