Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Jan 11, 2022
1 parent daf36a4 commit 60df383
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion collector/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ struct DbOption {

#[derive(Debug, clap::Args)]
struct BenchRustcOption {
// Run the special `rustc` benchmark
/// Run the special `rustc` benchmark
#[clap(long = "bench-rustc")]
bench_rustc: bool,
}
Expand Down Expand Up @@ -1218,3 +1218,11 @@ pub fn get_commit_or_fake_it(sha: &str) -> anyhow::Result<Commit> {
}
}))
}

#[test]
fn verify_app() {
// By default, clap lazily checks subcommands. This provides eager testing
// without having to run the binary for each subcommand.
use clap::IntoApp;
Cli::into_app().debug_assert()
}

0 comments on commit 60df383

Please sign in to comment.