diff --git a/cli/src/commands/bench/mod.rs b/cli/src/commands/bench/mod.rs index aea4f41e9..2c0358bdb 100644 --- a/cli/src/commands/bench/mod.rs +++ b/cli/src/commands/bench/mod.rs @@ -50,6 +50,19 @@ pub enum BenchCommand { Revset(BenchRevsetArgs), } +pub(crate) fn cmd_bench( + ui: &mut Ui, + command: &CommandHelper, + subcommand: &BenchCommand, +) -> Result<(), CommandError> { + match subcommand { + BenchCommand::CommonAncestors(args) => cmd_bench_common_ancestors(ui, command, args), + BenchCommand::IsAncestor(args) => cmd_bench_is_ancestor(ui, command, args), + BenchCommand::ResolvePrefix(args) => cmd_bench_resolve_prefix(ui, command, args), + BenchCommand::Revset(args) => cmd_bench_revset(ui, command, args), + } +} + #[derive(clap::Args, Clone, Debug)] struct CriterionArgs { /// Name of baseline to save results @@ -94,16 +107,3 @@ where }); Ok(()) } - -pub(crate) fn cmd_bench( - ui: &mut Ui, - command: &CommandHelper, - subcommand: &BenchCommand, -) -> Result<(), CommandError> { - match subcommand { - BenchCommand::CommonAncestors(args) => cmd_bench_common_ancestors(ui, command, args), - BenchCommand::IsAncestor(args) => cmd_bench_is_ancestor(ui, command, args), - BenchCommand::ResolvePrefix(args) => cmd_bench_resolve_prefix(ui, command, args), - BenchCommand::Revset(args) => cmd_bench_revset(ui, command, args), - } -}