Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Oct 27, 2023
1 parent 8bcc3d0 commit 8844261
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
5 changes: 1 addition & 4 deletions framework/meta/src/cli_args/cli_args_standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use clap::{ArgAction, Args, Parser, Subcommand};

use super::{CliArgsToRaw, ContractCliAction};


/// Parsed arguments of the meta crate CLI.
#[derive(Default, PartialEq, Eq, Debug, Parser)]
#[command(
Expand Down Expand Up @@ -79,8 +78,6 @@ pub struct InfoArgs {
pub ignore: Vec<String>,
}



#[derive(Default, Clone, PartialEq, Eq, Debug, Args)]
pub struct TestArgs {
/// Target directory where to generate contract integration tests.
Expand All @@ -97,7 +94,7 @@ pub struct TestArgs {
/// Default value will be "false" if not specified.
/// If scen and go are both specified, scen overrides the go argument.
#[arg(short, long, default_value = "false", verbatim_doc_comment)]
pub scen: bool
pub scen: bool,
}

#[derive(Default, Clone, PartialEq, Eq, Debug, Args)]
Expand Down
8 changes: 3 additions & 5 deletions framework/meta/src/cmd/standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ mod all;
mod info;
mod local_deps;
pub mod scen_test_gen;
pub(crate) mod upgrade;
pub mod test;
pub(crate) mod upgrade;

use crate::{
cli_args::{StandaloneCliAction, StandaloneCliArgs},
Expand All @@ -14,8 +14,8 @@ use clap::Parser;
use info::call_info;
use local_deps::local_deps;
use scen_test_gen::test_gen_tool;
use upgrade::upgrade_sc;
use test::test;
use upgrade::upgrade_sc;

/// Entry point in the program when calling it as a standalone tool.
pub async fn cli_main_standalone() {
Expand All @@ -38,9 +38,7 @@ pub async fn cli_main_standalone() {
Some(StandaloneCliAction::TestGen(args)) => {
test_gen_tool(args);
},
Some(StandaloneCliAction::Test(args)) => {
test(args)
}
Some(StandaloneCliAction::Test(args)) => test(args),
None => {},
}
}
3 changes: 1 addition & 2 deletions framework/meta/src/cmd/standalone/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ pub fn test(test_args: &TestArgs) {
.unwrap_or_else(|_| {
panic!(
"{}",
format!("Failed to run program: {program} {args_str}")
.bright_red()
format!("Failed to run program: {program} {args_str}").bright_red()
)
});

Expand Down

0 comments on commit 8844261

Please sign in to comment.