-
Notifications
You must be signed in to change notification settings - Fork 36
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
Adds #![deny(rust_2018_idioms)], applies lifetime elision suggestions #861
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #861 +/- ##
==========================================
+ Coverage 77.81% 77.83% +0.01%
==========================================
Files 136 136
Lines 33984 34021 +37
Branches 33984 34021 +37
==========================================
+ Hits 26446 26479 +33
- Misses 5598 5602 +4
Partials 1940 1940 ☔ View full report in Codecov by Sentry. |
/* 0 */ TemplateBodyExpr::element( | ||
/* 0 */ | ||
TemplateBodyExpr::element( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can feel free to remove these if you like, I added them to help me keep track of all the indices but perhaps they are unnecessary.... one can track the left hand side of the ExprRange arguments instead.
Issue #, if available: #859
Description of changes:
Adds
#![deny(rust_2018_idioms)]
at the crate level, disallowing elided anonymous lifetimes and unnecessary trait lifetime qualifications. Also applies lots of newclippy
suggestions around lifetime elisions in trait implementations.There are no logic changes, only mechanical lint suggestion fixes.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.