From 22e704c9651adc77c1352fa8e207390d45975bf6 Mon Sep 17 00:00:00 2001 From: Nisheeth Barthwal Date: Sat, 21 Dec 2024 22:40:16 +0100 Subject: [PATCH] clippy --- crates/zksync/compiler/src/zksolc/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/zksync/compiler/src/zksolc/mod.rs b/crates/zksync/compiler/src/zksolc/mod.rs index ffe7349ed..50eee0f2f 100644 --- a/crates/zksync/compiler/src/zksolc/mod.rs +++ b/crates/zksync/compiler/src/zksolc/mod.rs @@ -304,4 +304,9 @@ impl DualCompiledContracts { pub fn len(&self) -> usize { self.contracts.len() } + + /// Retrieves if the collection is empty. + pub fn is_empty(&self) -> bool { + self.contracts.is_empty() + } }