From 62642e34b4ce587d05ce6fd98e9ab9e1e4683cb2 Mon Sep 17 00:00:00 2001 From: Kyle Wigley <9877221+kwigley@users.noreply.github.com> Date: Wed, 17 Jul 2024 19:32:28 -0400 Subject: [PATCH 1/2] add unused var --- src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index f4d074e..00c1eac 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -54,8 +54,7 @@ impl From for Config { pub struct Cli { #[clap(subcommand)] command: Subcommand, - #[clap( - name = "config", + #[clap(name = "config", short, long, value_name = "PATH", @@ -81,6 +80,7 @@ impl Cli { } pub fn select_input(choices: &[T], prompt: String) -> Result<&T> { + let test = "asdf"; let idx = Select::with_theme(&ColorfulTheme::default()) .with_prompt(prompt) .items(choices) From 8d9b70d7c3b7aa1be03eb6aa4180fb96429184a9 Mon Sep 17 00:00:00 2001 From: Kyle Wigley <9877221+kwigley@users.noreply.github.com> Date: Wed, 17 Jul 2024 19:38:24 -0400 Subject: [PATCH 2/2] fix formatting --- src/cli.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 00c1eac..13a6269 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -54,11 +54,12 @@ impl From for Config { pub struct Cli { #[clap(subcommand)] command: Subcommand, - #[clap(name = "config", - short, - long, - value_name = "PATH", - default_value = DEFAULT_CONFIG, + #[clap( + name = "config", + short, + long, + value_name = "PATH", + default_value = DEFAULT_CONFIG, )] config_path: PathBuf, }