Skip to content

fixed a few clippy warnings#2

Open
llogiq wants to merge 1 commit intotrevp:masterfrom
llogiq:clippy
Open

fixed a few clippy warnings#2
llogiq wants to merge 1 commit intotrevp:masterfrom
llogiq:clippy

Conversation

@llogiq
Copy link

@llogiq llogiq commented Apr 5, 2016

Mostly style things. Cheers! 😄

&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