From 013c797e1f2aeca4f5340361ac34c2123da13071 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sat, 24 May 2025 14:31:07 -0500 Subject: [PATCH] Drop nested `list` variable in command The enum variant is the value this code-path requires. The inner bool doesn't do anything, so it can go away. --- src/cli.rs | 5 +---- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 8489d95..ebb3a52 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -14,8 +14,5 @@ pub struct Args { #[derive(Subcommand, Debug)] pub enum Commands { - ListReleases { - #[arg(short, long)] - list: bool, - }, + ListReleases, } diff --git a/src/main.rs b/src/main.rs index 5aa885c..fad04ab 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ async fn main() -> Result<(), Error> { let args = Args::parse(); match args.command { - gt_tools::cli::Commands::ListReleases { list } => { + gt_tools::cli::Commands::ListReleases => { let request_url = format!( "http:/localhost:3000/api/v1/repos/{owner}/{repo}/releases", owner = "robert",