diff --git a/leo/commands/build.rs b/leo/commands/build.rs index ec2326a300..5871d4f1d4 100644 --- a/leo/commands/build.rs +++ b/leo/commands/build.rs @@ -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();