Skip to content
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 #2615

Merged
merged 2 commits into from
Apr 19, 2022
Merged

*: Fix clippy warnings #2615

merged 2 commits into from
Apr 19, 2022

Conversation

LesnyRumcajs
Copy link
Contributor

Hello! After some time tidying up (tried to do something different but I always start with a linter :D ) I noticed you use a custom clippy command. Figured I'll propose some of the changes I made anyway.

Is there a specific reason why many of the lints are disabled? Or do you think it'd be useful to fix the offending pedantic and style issues and disable the suppressions? (complex type may be overkill though)

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look good to me. Feel free to enable the corresponding lints in case all of their ocurrences are now fixed with this pull request.

Regarding enabling all of them, I am not familiar with how intrusive that would be.

@LesnyRumcajs
Copy link
Contributor Author

@mxinden Thanks for looking into it. What do you think about merging this and iterating over it to avoid one massive PR on a long-living branch? There are quite a lot of other issues reported by the pedantic clippy (most of which make sense).

@mxinden mxinden changed the title fix some clippy issues *: Fix clippy warnings Apr 19, 2022
@mxinden mxinden merged commit 22fbce3 into libp2p:master Apr 19, 2022
@mxinden
Copy link
Member

mxinden commented Apr 19, 2022

What do you think about merging this and iterating over it

Sounds good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants