mirror of
https://github.com/AleoHQ/leo.git
synced 2024-09-19 02:57:58 +03:00
Fix clippy and fmt
This commit is contained in:
parent
0d0c598748
commit
719980e17f
@ -214,6 +214,7 @@ mod tests {
|
||||
"aleo13tngrq7506zwdxj0cxjtvp28pk937jejhne0rt4zp0z370uezuysjz2prs".to_string(),
|
||||
"2u32".to_string(),
|
||||
],
|
||||
file: None,
|
||||
compiler_options: Default::default(),
|
||||
},
|
||||
},
|
||||
|
@ -16,11 +16,11 @@
|
||||
|
||||
use super::*;
|
||||
|
||||
use leo_ast::{Stub};
|
||||
use leo_ast::Stub;
|
||||
use leo_compiler::{Compiler, CompilerOptions, OutputOptions};
|
||||
use leo_errors::UtilError;
|
||||
use leo_package::{build::BuildDirectory, outputs::OutputsDirectory, source::SourceDirectory};
|
||||
use leo_span::{Symbol};
|
||||
use leo_span::Symbol;
|
||||
use retriever::Retriever;
|
||||
|
||||
use snarkvm::{
|
||||
@ -34,7 +34,6 @@ use std::{
|
||||
path::{Path, PathBuf},
|
||||
};
|
||||
|
||||
|
||||
type CurrentNetwork = Testnet3;
|
||||
|
||||
impl From<BuildOptions> for CompilerOptions {
|
||||
@ -111,7 +110,6 @@ impl Command for Build {
|
||||
let mut local_dependencies =
|
||||
retriever.retrieve().map_err(|err| UtilError::failed_to_retrieve_dependencies(err, Default::default()))?;
|
||||
|
||||
|
||||
// Push the main program at the end of the list to be compiled after all of its dependencies have been processed
|
||||
local_dependencies.push(main_sym);
|
||||
|
||||
|
@ -28,7 +28,7 @@ pub struct Run {
|
||||
pub(crate) inputs: Vec<String>,
|
||||
|
||||
#[arg(short, long, help = "The inputs to the program, from a file. Overrides the INPUTS argument.")]
|
||||
file: Option<String>,
|
||||
pub(crate) file: Option<String>,
|
||||
|
||||
#[clap(flatten)]
|
||||
pub(crate) compiler_options: BuildOptions,
|
||||
|
Loading…
Reference in New Issue
Block a user