You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not obvious where Reverse is; for instance, if users' code includes Reverse such as struct or impl, then this suggestion misleads them.
Accordingly, I would suggest using the precise namespace for Reverse as std::cmp::Reverse.
What it does
I would say the
unnecessary_sort_by
lint should use the precise namespace forReverse
.Currently, it shows help like the following:
It is not obvious where
Reverse
is; for instance, if users' code includesReverse
such asstruct
orimpl
, then this suggestion misleads them.Accordingly, I would suggest using the precise namespace for
Reverse
asstd::cmp::Reverse
.Lint Name
unnecessary_sort_by
Example
The current help could be:
The text was updated successfully, but these errors were encountered: