Skip to content

Commit

Permalink
Fix clippy and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
d0cd committed Jan 6, 2024
1 parent c81ea55 commit 69dd7d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions leo/cli/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ mod tests {
"aleo1q30lfyggefvzzxqaaclzrn3wd94q4u8zzy8jhhfrcqrf306ayvqsdvj7s4".to_string(),
"1u32".to_string(),
],
file: None,
compiler_options: Default::default(),
},
},
Expand Down
6 changes: 2 additions & 4 deletions leo/cli/commands/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand All @@ -34,7 +34,6 @@ use std::{
path::{Path, PathBuf},
};


type CurrentNetwork = Testnet3;

impl From<BuildOptions> for CompilerOptions {
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion leo/cli/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 69dd7d6

Please sign in to comment.