We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
needless_lifetimes
impl<'a>
needless_lifetimes currently could support suggesting lifetime elison in impl<'a> T<'a> or impl<'a> Trait for T<'a> signatures.
impl<'a> T<'a>
impl<'a> Trait for T<'a>
Adds extra verbosity which is not necessary. If we elide lifetimes everywhere else, why don't we suggest it here?
Unsure if there is any.
impl<'a> MyType<'a> { // method definitions that don't reference 'a }
Could be written as:
impl MyType<'_> { // method definitions that don't reference 'a }
The text was updated successfully, but these errors were encountered:
Given that I am in the process of cleaning up needless_lifetimes, I will pick this up.
@rustbot claim
Sorry, something went wrong.
This was implemented in #13286
m-rph
Successfully merging a pull request may close this issue.
What it does
needless_lifetimes
currently could support suggesting lifetime elison inimpl<'a> T<'a>
orimpl<'a> Trait for T<'a>
signatures.Advantage
Adds extra verbosity which is not necessary. If we elide lifetimes everywhere else, why don't we suggest it here?
Drawbacks
Unsure if there is any.
Example
Could be written as:
The text was updated successfully, but these errors were encountered: