Implement `is_empty` for `AllowedLibPaths` (#777)
* pub svm_compile * empty allowed paths
This commit is contained in:
parent
270fe46d37
commit
1287614e53
|
@ -550,6 +550,12 @@ impl ArtifactOutput for MinimalCombinedArtifactsHardhatFallback {
|
||||||
#[derive(Clone, Debug, Default)]
|
#[derive(Clone, Debug, Default)]
|
||||||
pub struct AllowedLibPaths(pub(crate) Vec<PathBuf>);
|
pub struct AllowedLibPaths(pub(crate) Vec<PathBuf>);
|
||||||
|
|
||||||
|
impl AllowedLibPaths {
|
||||||
|
pub fn is_empty(&self) -> bool {
|
||||||
|
self.0.is_empty()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl fmt::Display for AllowedLibPaths {
|
impl fmt::Display for AllowedLibPaths {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
let lib_paths = self
|
let lib_paths = self
|
||||||
|
|
Loading…
Reference in New Issue