method_duplicate_name
#7632
Labels
A-lint
Area: New lints
good first issue
These issues are a good way to get started with Clippy
L-pedantic
Lint: Belongs in the pedantic lint group
What it does
What does this lint do?
A struct has two methods with the same name:
one defined in
impl trait
, another in normalimpl
.We shouldn't lint two method in two traits.This may break a lot. (I'm not sure)
Categories
clippy::all
,clippy::style
What is the advantage of the recommended code over the original code
Drawbacks
Maybe meet difficulty in renaming the methods.
Example
The text was updated successfully, but these errors were encountered: