Get rid of unnecessary curly braces
This commit is contained in:
parent
3f2b3d2f73
commit
1ed358a0b2
1 changed files with 3 additions and 5 deletions
|
|
@ -10,10 +10,8 @@ mod tidy;
|
||||||
pub enum Command {
|
pub enum Command {
|
||||||
Status(status::Command),
|
Status(status::Command),
|
||||||
Tidy(tidy::Command),
|
Tidy(tidy::Command),
|
||||||
Repo {
|
#[command(subcommand)]
|
||||||
#[command(subcommand)]
|
Repo(repo::Command),
|
||||||
command: repo::Command,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Command {
|
impl Command {
|
||||||
|
|
@ -21,7 +19,7 @@ impl Command {
|
||||||
match self {
|
match self {
|
||||||
Self::Status(command) => command.run(env),
|
Self::Status(command) => command.run(env),
|
||||||
Self::Tidy(command) => command.run(env),
|
Self::Tidy(command) => command.run(env),
|
||||||
Self::Repo { command } => command.run(env),
|
Self::Repo(command) => command.run(env),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue