Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind committed Sep 12, 2022
1 parent 0c1ec11 commit ed26bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sui-core/src/consensus_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ impl ConsensusListener {
if len > 8 {
// The first 8 bytes are the tracking id, and we don't want to hash that so that
// certificates submitted by different validators are considered the same message.
(&serialized[8..]).hash(&mut hasher);
(serialized[8..]).hash(&mut hasher);
} else {
// If somehow the length is <= 8 (which is invalid), we just don't care and hash
// the whole thing.
Expand Down

0 comments on commit ed26bdd

Please sign in to comment.