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
[args @ ..]
Detects usage of [args @ ..] and suggests switching it to args.
args
Can probably be named redundant_rest_pattern.
redundant_rest_pattern
@rustbot claim
None.
if let Some([args @ ..]) = init { ... }
Could be written as:
if let Some(args) = init { ... }
The text was updated successfully, but these errors were encountered:
redundant_at_rest_pattern
3d4c536
Centri3
Successfully merging a pull request may close this issue.
What it does
Detects usage of
[args @ ..]
and suggests switching it toargs
.Can probably be named
redundant_rest_pattern
.@rustbot claim
Advantage
args
.Drawbacks
None.
Example
Could be written as:
The text was updated successfully, but these errors were encountered: