Skip to content

Commit

Permalink
Opt variable naming fro tree-d cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ta0li committed Mar 14, 2022
1 parent b36cb06 commit b5b3039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions venus-worker/src/bin/venus-worker/generator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use venus_worker::generate_static_tree_d;
pub const SUB_CMD_NAME: &str = "generator";

pub fn subcommand<'a, 'b>() -> App<'a, 'b> {
let pieces_cmd = SubCommand::with_name("tree-d")
let tree_d_cmd = SubCommand::with_name("tree-d")
.arg(
Arg::with_name("sector-size")
.long("sector-size")
Expand All @@ -26,7 +26,7 @@ pub fn subcommand<'a, 'b>() -> App<'a, 'b> {

SubCommand::with_name(SUB_CMD_NAME)
.setting(AppSettings::ArgRequiredElseHelp)
.subcommand(pieces_cmd)
.subcommand(tree_d_cmd)
}

pub(crate) fn submatch<'a>(subargs: &ArgMatches<'a>) -> Result<()> {
Expand Down

0 comments on commit b5b3039

Please sign in to comment.