mirror of
https://github.com/AleoHQ/leo.git
synced 2025-01-02 23:04:12 +03:00
clippy
This commit is contained in:
parent
bbc210d016
commit
f71648c6a6
@ -34,8 +34,6 @@ use snarkvm_r1cs::ConstraintSystem;
|
|||||||
use structopt::StructOpt;
|
use structopt::StructOpt;
|
||||||
use tracing::span::Span;
|
use tracing::span::Span;
|
||||||
|
|
||||||
use std::collections::HashMap;
|
|
||||||
|
|
||||||
/// Compiler Options wrapper for Build command. Also used by other commands which
|
/// Compiler Options wrapper for Build command. Also used by other commands which
|
||||||
/// require Build command output as their input.
|
/// require Build command output as their input.
|
||||||
#[derive(StructOpt, Clone, Debug)]
|
#[derive(StructOpt, Clone, Debug)]
|
||||||
@ -132,7 +130,7 @@ impl Command for Build {
|
|||||||
.manifest()
|
.manifest()
|
||||||
.map_err(|_| anyhow!("Package manifest not found, try running `leo init`"))?;
|
.map_err(|_| anyhow!("Package manifest not found, try running `leo init`"))?;
|
||||||
let package_name = manifest.get_package_name();
|
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.
|
// Sanitize the package path to the root directory.
|
||||||
let mut package_path = path.clone();
|
let mut package_path = path.clone();
|
||||||
|
Loading…
Reference in New Issue
Block a user