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

Deal with some clippy warnings #2139

Merged
merged 7 commits into from
Jul 16, 2021

Conversation

thomaseizinger
Copy link
Contributor

Can drop individual commits if some of the changes are not wanted.

I purposely left everything in relay untouched to not interfere with #2059 too much.

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.

Thank you @thomaseizinger!

I purposely left everything in relay untouched to not interfere with #2059 too much.

Very considerate. Thank you.

@@ -244,25 +244,25 @@ impl Encoder for Codec {
fn encode(&mut self, item: Self::Item, dst: &mut BytesMut) -> Result<(), Self::Error> {
let (header, data) = match item {
Frame::Open { stream_id } => {
(u64::from(stream_id.num) << 3, Bytes::new())
(stream_id.num << 3, Bytes::new())
Copy link
Member

Choose a reason for hiding this comment

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

Thanks! I should have caught this in #2094.

@mxinden
Copy link
Member

mxinden commented Jul 16, 2021

As an aside: I would as well be fine failing CI on clippy warning level lints.

@mxinden mxinden merged commit 20183c1 into libp2p:master Jul 16, 2021
@thomaseizinger
Copy link
Contributor Author

As an aside: I would as well be fine failing CI on clippy warning level lints.

I would like that! If we do that now, it will interfere with your relay changes though. Let me know if that is okay for you.

@mxinden
Copy link
Member

mxinden commented Jul 19, 2021

As an aside: I would as well be fine failing CI on clippy warning level lints.

I would like that! If we do that now, it will interfere with your relay changes though. Let me know if that is okay for you.

That would be fine by me.

Me being slow at tackling #2052 should not slow down all of you.

@thomaseizinger
Copy link
Contributor Author

I opened #2148.

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