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

fixed a few clippy warnings #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixed a few clippy warnings #2

wants to merge 1 commit into from

Conversation

llogiq
Copy link

@llogiq llogiq commented Apr 5, 2016

Mostly style things. Cheers! 😄

@@ -47,7 +47,7 @@ impl<'a> HandshakeState<'a> {
&mut owner.rng,
&mut owner.cipherstate,
&mut owner.hasher,
&mut owner.s, &mut owner.e,
&owner.s, &mut owner.e,
Copy link

Choose a reason for hiding this comment

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

What's the rationale behind this change?

@llogiq
Copy link
Author

llogiq commented Apr 7, 2016

The mutability isn't needed here, and removing it shows that the value doesn't need to be mutably borrowed. Also in theory it could help the compiler, but I assume the effect is negligible.

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