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 newly raised clippy warnings #3106

Merged
merged 6 commits into from Nov 11, 2022

Conversation

umgefahren
Copy link
Contributor

@umgefahren umgefahren commented Nov 10, 2022

Description

I corrected warnings raised by clippy that accumulated or came from a new iteration of clippy.

Change checklist

  • I have performed a self-review of my own code
  • I have added tests that prove my fix is effective or that my feature works

Commit message body

Fixed minor issues raised by clippy to improve correctness and readablitity.

@umgefahren umgefahren marked this pull request as ready for review November 10, 2022 14:07
Copy link
Contributor Author

@umgefahren umgefahren left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Member

@jxs jxs left a comment

Choose a reason for hiding this comment

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

Hi Hannes LGTM! Curious, how did you run cargo clippy, did you run the custom-clippy?

@@ -4,8 +4,11 @@

- Hide `prost::Error` from public API in `FromEnvelopeError::InvalidPeerRecord` and `signed_envelope::DecodingError`. See [PR 3058].

- Fixed minor clippy issue. See [PR 3106].
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need to announce clippy improvements in the CHANGELOG.md if they don't affect the public API, see here

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, lets not clutter the changelog with such details.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the changes from the changelog.

examples/chat-tokio.rs Show resolved Hide resolved
@thomaseizinger
Copy link
Contributor

Related: #3090

Copy link
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

I am okay to merge this if we drop the changelog entries :)

@thomaseizinger thomaseizinger changed the title *: Fixed some issues raised by clippy again *: Fix newly raised clippy warnings Nov 11, 2022
@mergify mergify bot merged commit c32f03c into libp2p:master Nov 11, 2022
@thomaseizinger
Copy link
Contributor

@Mergifyio backport rust-v0480-testplan

mergify bot pushed a commit that referenced this pull request Feb 15, 2023
Fixed minor issues raised by clippy to improve correctness and readablitity.

(cherry picked from commit c32f03c)

# Conflicts:
#	examples/gossipsub-chat.rs
#	protocols/kad/src/query/peers/closest/disjoint.rs
@mergify
Copy link

mergify bot commented Feb 15, 2023

backport rust-v0480-testplan

✅ Backports have been created

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

Successfully merging this pull request may close these issues.

None yet

3 participants