File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
core/node/l1_recovery/src/l1_fetcher Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff 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 ) ) ,
Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments