-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unneeded lifetime annotations #389
Remove unneeded lifetime annotations #389
Conversation
@Hofer-Julian The Clippy lint is unrelated, but could you fix it nevertheless by explicitly allowing the lint? (We want to test this case even if we do not need a |
Couldn't test it easily locally. |
Thanks! |
These lifetimes are on purpose, see also https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#elided-lifetimes-in-paths . Can this PR be reverted? |
While I see their value as documentation I am also not particularly keen on having them (i.e. I did not enable the lint). Do you see any functional issues with removing them? (Reverting is obviously technically possible, but I am just not invested one way or the other. If we do revert because we really want the lifetimes, we should probably enable the lint though.) |
I don't actually care that much because I don't feel that strongly about rust-numpy but I enabled that lint in pyo3 because I've seen many newbies struggle because of hidden lifetimes parameters. My preference is to enable that lint everywhere. |
It seems like none of these annotations are necessary. After removing them, everything still compiles and works as expected.