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

*: Format with rustfmt #2188

Merged
merged 34 commits into from
Aug 11, 2021
Merged

*: Format with rustfmt #2188

merged 34 commits into from
Aug 11, 2021

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Aug 9, 2021

Using rustfmt across the rust-libp2p repository has been a continuous ask from contributors and the community. While using rustfmt myself, I am mostly indifferent. That said, given that most of the Rust ecosystem uses rustfmt and given that using rustfmt lowers the barrier for newcomers, this pull request formats all of rust-libp2p and adds a CI step to enforce the formatting in the future (thanks to @thomaseizinger).

I went through most of the changes. As far as I can tell, none of the pointers as comments (e.g. some code // [1]) have been altered.

Copy link
Contributor

@wngr wngr left a comment

Choose a reason for hiding this comment

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

Great quality-of-life improvement :-)

@mxinden
Copy link
Member Author

mxinden commented Aug 10, 2021

I will wait for #2188 to merge first. Reviews on #2188 would be very much appreciated.

@dvc94ch
Copy link
Contributor

dvc94ch commented Aug 10, 2021

I'm afraid that if you wait for #2188 to be merged before merging #2188 this PR will never get merged ;)

@mxinden
Copy link
Member Author

mxinden commented Aug 10, 2021

I'm afraid that if you wait for #2188 to be merged before merging #2188 this PR will never get merged ;)

Haha, indeed. This is a tough one to solve :P

I meant to reference #2183 which should solve the puzzle.

@mxinden mxinden merged commit f701b24 into libp2p:master Aug 11, 2021
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.

None yet

4 participants