Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
xqft committed Sep 2, 2024
1 parent bd05fb2 commit 9302208
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/src/aligned_polling_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ use log::{error, info};

use crate::proof::state_proof::{MinaStateProof, MinaStatePubInputs};

/// Submits a Mina (state or account) proof to Aligned's batcher and waits until the batch is verified.
/// Submits a Mina state proof to Aligned's batcher and waits until the batch is verified.
#[allow(clippy::too_many_arguments)]
pub async fn submit_state_proof(
proof: &MinaStateProof,
pub_input: &MinaStatePubInputs,
Expand Down
4 changes: 2 additions & 2 deletions core/src/smart_contract_utility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub async fn update_chain(

// TODO(xqft): do the same for ledger hashes
debug!("Getting chain state hashes");
let new_chain_state_hashes = get_bridge_chain_state_hashes(&chain, &eth_rpc_url)
let new_chain_state_hashes = get_bridge_chain_state_hashes(chain, eth_rpc_url)
.await
.map_err(|err| err.to_string())?;

Expand Down Expand Up @@ -303,7 +303,7 @@ pub async fn get_bridge_chain_state_hashes(
.and_then(|hashes| {
hashes
.try_into()
.map_err(|_| format!("Failed to convert chain state hashes vec into array"))
.map_err(|_| "Failed to convert chain state hashes vec into array".to_string())
})
}

Expand Down

0 comments on commit 9302208

Please sign in to comment.