From 29aa4774179442d917477567bca846bfde39fe18 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Sun, 10 Aug 2025 23:03:05 -0300 Subject: [PATCH] fix: add Clone derive to nested argument structs to satisfy trait bound Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9258f53..63f27ef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,7 +46,7 @@ pub struct Args { /** * Struct for mode-specific arguments. */ -#[derive(Parser, Debug)] +#[derive(Parser, Debug, Clone)] struct ModeArgs { #[arg(group("mode"), help_heading("Mode Options"), short, long, conflicts_with_all(["get", "diff", "list", "update", "delete", "info", "status"]))] #[arg(help("Save an item using any tags or metadata provided"))] @@ -92,7 +92,7 @@ struct ModeArgs { /** * Struct for item-specific arguments. */ -#[derive(Parser, Debug)] +#[derive(Parser, Debug, Clone)] struct ItemArgs { #[arg(help_heading("Item Options"), short, long, conflicts_with_all(["get", "delete", "status"]))] #[arg(help( @@ -117,8 +117,7 @@ struct ItemArgs { /** * Struct for general options. */ -#[derive(Parser, Debug)] -#[derive(Default)] +#[derive(Parser, Debug, Default, Clone)] struct OptionsArgs { #[arg(long, env("KEEP_DIR"))] #[arg(help("Specify the directory to use for storage"))]