This commit is contained in:
damirka 2021-07-07 17:15:42 +03:00
parent bbc210d016
commit f71648c6a6

View File

@ -34,8 +34,6 @@ use snarkvm_r1cs::ConstraintSystem;
use structopt::StructOpt;
use tracing::span::Span;
use std::collections::HashMap;
/// Compiler Options wrapper for Build command. Also used by other commands which
/// require Build command output as their input.
#[derive(StructOpt, Clone, Debug)]
@ -132,7 +130,7 @@ impl Command for Build {
.manifest()
.map_err(|_| anyhow!("Package manifest not found, try running `leo init`"))?;
let package_name = manifest.get_package_name();
let imports_map = manifest.get_imports_map().unwrap_or(HashMap::new());
let imports_map = manifest.get_imports_map().unwrap_or_default();
// Sanitize the package path to the root directory.
let mut package_path = path.clone();