Skip to content

Commit 3bb8196

Browse files
committed
Fix clippy
1 parent 82e32bb commit 3bb8196

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

operator/mina/lib/src/consensus_state.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ use mina_p2p_messages::{
77
MinaStateProtocolStateValueStableV2 as MinaProtocolState,
88
},
99
};
10-
///! Consensus chain selection algorithms. The [`official specification`] was taken as a reference.
11-
///
12-
///! [`official specification`]: https://github.com/MinaProtocol/mina/blob/develop/docs/specs/consensus/README.md
1310
use std::cmp::{max, min, Ordering};
1411

1512
const GRACE_PERIOD_END: u32 = 1440;
@@ -135,7 +132,7 @@ fn hash_last_vrf(chain: &MinaProtocolState) -> String {
135132
hasher.update(chain.body.consensus_state.last_vrf_output.as_slice());
136133
let digest = hasher.finalize().to_vec();
137134

138-
hex::encode(&digest)
135+
hex::encode(digest)
139136
}
140137

141138
fn hash_state(chain: &MinaProtocolState) -> String {

operator/mina/lib/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
/// Consensus chain selection algorithms. The [`official specification`] was taken as a reference.
2+
///
3+
/// [`official specification`]: https://github.com/MinaProtocol/mina/blob/develop/docs/specs/consensus/README.md
14
mod consensus_state;
5+
mod verifier_index;
26

37
use mina_bridge_core::proof::state_proof::{MinaStateProof, MinaStatePubInputs};
48

@@ -13,8 +17,6 @@ use mina_tree::proofs::verification::verify_block;
1317
use mina_tree::verifier::get_srs;
1418
use verifier_index::deserialize_blockchain_vk;
1519

16-
mod verifier_index;
17-
1820
lazy_static! {
1921
static ref VERIFIER_INDEX: VerifierIndex<GroupAffine<PallasParameters>> =
2022
deserialize_blockchain_vk().unwrap();

0 commit comments

Comments
 (0)