Suggest the usage of NonZeroU#::from where appropriate #7291
Labels
A-lint
Area: New lints
good-first-issue
These issues are a good way to get started with Clippy
L-restriction
Lint: Belongs in the restriction lint group
I think Clippy should start suggesting the usage of
NonZeroU#::from
from smallerNonZeroU#
, as in code like:The text was updated successfully, but these errors were encountered: