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

Stop calling state.finish() for fixed hashes #602

Merged
merged 1 commit into from
Nov 27, 2021
Merged

Stop calling state.finish() for fixed hashes #602

merged 1 commit into from
Nov 27, 2021

Conversation

jakelee8
Copy link
Contributor

Calling state.finish(); is a no-op. At call site, state is read-only and the return value is ignored. The call and may be removed.

Calling [`state.finish();`][Hasher::finish] is a no-op. At call site, `state` is read-only and the return value is ignored. The call and may be removed.

[Hasher::finish]: https://doc.rust-lang.org/std/hash/trait.Hasher.html#tymethod.finish
Copy link
Member

@ordian ordian left a comment

Choose a reason for hiding this comment

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

Thanks!

@niklasad1 niklasad1 merged commit 5fe7924 into paritytech:master Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants