-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
A-lintArea: New lintsArea: New lintsE-hardCall for participation: This a hard problem and requires more experience or effort to work onCall for participation: This a hard problem and requires more experience or effort to work onT-middleType: Probably requires verifiying typesType: Probably requires verifiying types
Description
I've seen uses of &*s where s is a String; this can be reduced to &s when calling a function that accepts &str.
Similarly, in the AST, I've seen (in clippy and racer) &**x or &*x where just x or &x is fine; call syntax will autoderef a &P<T> to a &T.
However, I don't really know yet how to do this in a general way.
fpoli and jamesmcm
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsE-hardCall for participation: This a hard problem and requires more experience or effort to work onCall for participation: This a hard problem and requires more experience or effort to work onT-middleType: Probably requires verifiying typesType: Probably requires verifiying types