Skip to content

Commit 4a60208

Browse files
committed
lint
1 parent 986fa2c commit 4a60208

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

core/node/l1_recovery/src/l1_fetcher/fetcher.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,12 +744,13 @@ impl L1Fetcher {
744744
);
745745
}
746746
}
747-
return Err(e);
747+
Err(e)
748748
}
749749
}
750750
}
751751

752752
/// Get a specified transaction on L1 by its hash.
753+
#[allow(clippy::borrowed_box)]
753754
async fn get_transaction_by_hash(
754755
eth_client: &Box<DynClient<L1>>,
755756
hash: H256,
@@ -766,10 +767,12 @@ impl L1Fetcher {
766767
}
767768
}
768769

770+
#[allow(clippy::borrowed_box)]
769771
fn query_client(eth_client: &Box<DynClient<L1>>) -> &dyn EthInterface {
770772
eth_client
771773
}
772774
/// Get the last published L1 block.
775+
#[allow(clippy::borrowed_box)]
773776
async fn get_last_l1_block_number(eth_client: &Box<DynClient<L1>>) -> Result<U64> {
774777
let last_block = L1Fetcher::retry_call(
775778
|| L1Fetcher::query_client(eth_client).block(BlockId::Number(BlockNumber::Finalized)),

core/node/l1_recovery/src/l1_fetcher/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl CommitBlock {
124124
Self::from_commit_block_resolve(commit_block_info, client).await
125125
}
126126

127-
pub fn uncompress_bytecode(compressed_bytes: &Vec<u8>) -> Vec<u8> {
127+
pub fn uncompress_bytecode(compressed_bytes: &[u8]) -> Vec<u8> {
128128
// decompression based on publishCompressedBytecode from Compressor.sol
129129
let mut ptr = 0;
130130
let dictionary_len: usize =

0 commit comments

Comments
 (0)