Skip to content

Commit

Permalink
Stylistic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
saulecabrera committed Aug 13, 2024
1 parent 734da56 commit 453b559
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions crates/cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ pub enum Command {
impl Command {
/// Returns true if it is [`Command::Compile`].
pub fn is_compile(&self) -> bool {
match self {
Self::Compile(_) => true,
_ => false,
}
matches!(self, Command::Compile(_))
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() -> Result<()> {
let args = Cli::parse();

match &args.command {
Command::EmitProvider(opts) => emit_provider(&opts),
Command::EmitProvider(opts) => emit_provider(opts),
c @ Command::Compile(opts) | c @ Command::Build(opts) => {
if c.is_compile() {
println!(
Expand Down

0 comments on commit 453b559

Please sign in to comment.