mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-21 16:41:42 +03:00
clippy
This commit is contained in:
parent
bbc210d016
commit
f71648c6a6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user