Skip to content

Commit 2f6046a

Browse files
committed
chore: lifetime lint
deps: remove unused dep
1 parent 909c95c commit 2f6046a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

crates/zksync/compiler/src/zksolc/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ impl DualCompiledContracts {
220220
/// Find a contract matching the given bytecode, whether it's EVM or ZK.
221221
///
222222
/// Will prioritize longest match
223-
pub fn find_bytecode<'a, 'b: 'a>(
224-
&'b self,
225-
init_code: &'a [u8],
226-
) -> Option<FindBytecodeResult<'a>> {
223+
pub fn find_bytecode<'a: 'b, 'b>(
224+
&'a self,
225+
init_code: &'b [u8],
226+
) -> Option<FindBytecodeResult<'b>> {
227227
let evm = self.find_by_evm_bytecode(init_code).map(|evm| (ContractType::EVM, evm));
228228
let zk = self.find_by_zk_deployed_bytecode(init_code).map(|evm| (ContractType::ZK, evm));
229229

crates/zksync/core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ exclude.workspace = true
1515
foundry-common.workspace = true
1616
foundry-evm-abi.workspace = true
1717
foundry-cheatcodes-common.workspace = true
18-
foundry-zksync-compiler.workspace = true
1918
alloy-primitives.workspace = true
2019
alloy-signer.workspace = true
2120
alloy-network.workspace = true

0 commit comments

Comments
 (0)