-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
A-lintArea: New lintsArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying typesType: Probably requires verifiying types
Description
A few suggestions:
- If a type derives
Eq
, it should also deriveHash
. - If a type is trivial (e.g. a unit struct or an enum of only unit variants) we should suggest to implement
Copy
,Eq
,Default
,Hash
, and their dependencies. - If a type derives
PartialEq
but could also deriveEq
, suggest derivingEq
. - Similar to 3 but with
Ord
.
Maxattax97
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying typesType: Probably requires verifiying types