Open orenbenkiki opened 1 year ago
iirc, we can't use Self
in a number of places because earlier versions of rust didn't support Self in a number of positions historically. If you send a PR adding #[allow(..)]
for the new lints, I'll get it merged and push a patch version
The new
clippy::use_self
warning (inclippy::nursery
) is triggered when usingderive
macros such asAsRefStr
and/orEnumString
. It seems clippy is/will become more pedantic when it comes to usingSelf
instead of the struct name, even inside procedural macros. Right now I just disabled the warning, but I'd like to be able to turn it on in general for my own code.