From 1287614e532662f0f2bf9caed24679a2b0843771 Mon Sep 17 00:00:00 2001 From: brockelmore <31553173+brockelmore@users.noreply.github.com> Date: Sat, 8 Jan 2022 17:20:28 -0500 Subject: [PATCH] Implement `is_empty` for `AllowedLibPaths` (#777) * pub svm_compile * empty allowed paths --- ethers-solc/src/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ethers-solc/src/config.rs b/ethers-solc/src/config.rs index ac76ab89..50d91518 100644 --- a/ethers-solc/src/config.rs +++ b/ethers-solc/src/config.rs @@ -550,6 +550,12 @@ impl ArtifactOutput for MinimalCombinedArtifactsHardhatFallback { #[derive(Clone, Debug, Default)] pub struct AllowedLibPaths(pub(crate) Vec); +impl AllowedLibPaths { + pub fn is_empty(&self) -> bool { + self.0.is_empty() + } +} + impl fmt::Display for AllowedLibPaths { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let lib_paths = self