Skip to content

Commit

Permalink
Run clippy on execution prover
Browse files Browse the repository at this point in the history
  • Loading branch information
pkakelas committed Dec 1, 2023
1 parent 2b06219 commit 42b5165
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions feeder/src/prover/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,10 @@ fn encode_receipt(receipt: &TransactionReceipt) -> Vec<u8> {
mod tests {
use cita_trie::{MemoryDB, PatriciaTrie, Trie};
use ethers::{
types::{Block, Transaction, TransactionReceipt},
utils::rlp::encode,
};
use hasher::HasherKeccak;
use std::{fs::File, sync::Arc};
use std::{sync::Arc};
use sync_committee_rs::constants::Root;
use tokio::test as tokio_test;

Expand Down
16 changes: 8 additions & 8 deletions feeder/src/prover/mocks/mock_execution_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,31 @@ impl ExecutionAPI for MockExecutionRPC {
Ok(res)
}

async fn get_block(&self, block_number: u64) -> Result<Option<Block<H256>>> {
async fn get_block(&self, _block_number: u64) -> Result<Option<Block<H256>>> {
unimplemented!();
}
async fn get_transaction_receipt(&self, tx_hash: &H256) -> Result<Option<TransactionReceipt>> {
async fn get_transaction_receipt(&self, _tx_hash: &H256) -> Result<Option<TransactionReceipt>> {
unimplemented!();
}
async fn get_blocks(&self, block_numbers: &[u64]) -> Result<Vec<Option<Block<H256>>>> {
async fn get_blocks(&self, _block_numbers: &[u64]) -> Result<Vec<Option<Block<H256>>>> {
unimplemented!();
}
async fn get_latest_block_number(&self) -> Result<U64> {
unimplemented!();
}
async fn get_transaction(&self, tx_hash: &H256) -> Result<Option<Transaction>> {
async fn get_transaction(&self, _tx_hash: &H256) -> Result<Option<Transaction>> {
unimplemented!();
}
async fn get_logs(&self, filter: &Filter) -> Result<Vec<Log>> {
async fn get_logs(&self, _filter: &Filter) -> Result<Vec<Log>> {
unimplemented!();
}
async fn get_filter_changes(&self, filter_id: &U256) -> Result<Vec<Log>> {
async fn get_filter_changes(&self, _filter_id: &U256) -> Result<Vec<Log>> {
unimplemented!();
}
async fn uninstall_filter(&self, filter_id: &U256) -> Result<bool> {
async fn uninstall_filter(&self, _filter_id: &U256) -> Result<bool> {
unimplemented!();
}
async fn get_new_filter(&self, filter: &Filter) -> Result<U256> {
async fn get_new_filter(&self, _filter: &Filter) -> Result<U256> {
unimplemented!();
}
async fn chain_id(&self) -> Result<u64> {
Expand Down

0 comments on commit 42b5165

Please sign in to comment.