Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Remove unused `impl Default for Command`
Lorenz Leutgeb committed 7 months ago
commit 07123fe9a944c9e8fadb22853b3c5eb52f979b47
parent 7998ca703ce9c289b6cbebc39a4b1e43d4ed1ed9
2 files changed +1 -6
modified crates/radicle-cli/src/commands/issue.rs
@@ -46,6 +46,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
    let command = args
        .command
        .unwrap_or(Command::List(args.empty.unwrap_or_default().into()));
+

    let announce = !args.no_announce && command.should_announce_for();
    let mut issues = term::cob::issues_mut(&profile, &repo)?;

modified crates/radicle-cli/src/commands/issue/args.rs
@@ -209,12 +209,6 @@ impl Command {
    }
}

-
impl Default for Command {
-
    fn default() -> Self {
-
        Self::List(ListArgs::default())
-
    }
-
}
-

/// Arguments for the empty subcommand.
#[derive(Parser, Debug, Default)]
pub(crate) struct EmptyArgs {