Skip to content

Commit

Permalink
Remove unneeded changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepySkeleton committed Jan 12, 2020
1 parent 24eb86d commit 80486ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1090,10 +1090,6 @@ pub trait StructOptInternal: StructOpt {
{
None
}

fn augment_version<'a, 'b>(app: clap::App<'a, 'b>) -> clap::App<'a, 'b> {
app
}
}

impl<T: StructOpt> StructOpt for Box<T> {
Expand Down Expand Up @@ -1121,9 +1117,4 @@ impl<T: StructOptInternal> StructOptInternal for Box<T> {
fn augment_clap<'a, 'b>(app: clap::App<'a, 'b>) -> clap::App<'a, 'b> {
<T as StructOptInternal>::augment_clap(app)
}

#[doc(hidden)]
fn augment_version<'a, 'b>(app: clap::App<'a, 'b>) -> clap::App<'a, 'b> {
<T as StructOptInternal>::augment_version(app)
}
}
2 changes: 1 addition & 1 deletion tests/issues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn issue_324() {
#[structopt(version = my_version())]
struct Opt {
#[structopt(subcommand)]
cmd: Option<SubCommand>,
_cmd: Option<SubCommand>,
}

#[derive(StructOpt)]
Expand Down

0 comments on commit 80486ff

Please sign in to comment.