-
Notifications
You must be signed in to change notification settings - Fork 310
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
Fix clippy warnings. #605
Fix clippy warnings. #605
Conversation
The following warnings are omitted 1. Redundant field names 2. Constants by default have a `'static'` life time 3. Redundant pattern matching 4. match statements by dereferencing 5. Using clone on copy type 6. Inclusive ranges 7. Manual copying loops 8. Dedicated clone methods
There are some warnings such as
I tried to solve this, but I get into And I also didn't change the fields with single char. The warning looks like
I felt it is meaning full. And also I haven't fixed the specific error catching, the warning looks like
I am looking into the code, once I get the error handling and error types defined in |
Thanks for working on this @dineshadepu! |
Yes, it ready to review. |
I'd like to have clippy in the CI pipeline: it would be nice to have a reference that every contributor on a PR can look at to see linter warnings. Ideally the build should only fail on errors, not warnings (let's start with a bit of slack).
To add Clippy to our CI pipeline, we should either resolve these errors or disable Clippy for those error classes/functions/methods. |
I made some pull-requests on these errors but they are all referenced to the #642 issue (I just looked for |
The following warnings are omitted
'static'
life time