Lint against Self
as an arbitrary self type
#5861
Labels
A-lint
Area: New lints
good-first-issue
These issues are a good way to get started with Clippy
L-complexity
Lint: Belongs in the complexity lint group
What it does
Suggest replacing
self: Self
withself
, because as far as I knowself
is the same asself: Self
.Categories (optional)
clippy::style
What is the advantage of the recommended code over the original code?
Drawbacks
None.
Example
Could be written as:
Relevant issue for the feature: rust-lang/rust#44874
The text was updated successfully, but these errors were encountered: