Get rid of unnecessary curly braces

This commit is contained in:
Joscha 2025-05-03 00:53:21 +02:00
parent 3f2b3d2f73
commit 1ed358a0b2

View file

@ -10,10 +10,8 @@ mod tidy;
pub enum Command {
Status(status::Command),
Tidy(tidy::Command),
Repo {
#[command(subcommand)]
command: repo::Command,
},
#[command(subcommand)]
Repo(repo::Command),
}
impl Command {
@ -21,7 +19,7 @@ impl Command {
match self {
Self::Status(command) => command.run(env),
Self::Tidy(command) => command.run(env),
Self::Repo { command } => command.run(env),
Self::Repo(command) => command.run(env),
}
}
}