Fix clippy and fmt

This commit is contained in:
Pranav Gaddamadugu 2024-01-06 18:48:17 +08:00
parent 0d0c598748
commit 719980e17f
3 changed files with 4 additions and 5 deletions

View File

@ -214,6 +214,7 @@ mod tests {
"aleo13tngrq7506zwdxj0cxjtvp28pk937jejhne0rt4zp0z370uezuysjz2prs".to_string(),
"2u32".to_string(),
],
file: None,
compiler_options: Default::default(),
},
},

View File

@ -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);

View File

@ -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,