From 570c90fcc60529b767c4f46df10efaf59ec4745c Mon Sep 17 00:00:00 2001 From: Matthew Bakhtiari Date: Fri, 30 Jul 2021 06:28:11 +0200 Subject: [PATCH] Fix derive helper being called before introduction Bug: https://github.com/rust-lang/rust/issues/79202 --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index dbf73ee..94aa1af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,6 +24,7 @@ struct Args { manifest_path: Option, } +#[derive(StructOpt, Debug)] #[structopt( name = "cargo-ebuild", bin_name = "cargo", @@ -31,7 +32,6 @@ struct Args { about = "Generates an ebuild for a given Cargo project", global_settings(&[AppSettings::ColoredHelp]) )] -#[derive(StructOpt, Debug)] enum Opt { #[structopt(name = "ebuild")] /// Generates an ebuild for a given Cargo project