diff --git a/crates/cli/src/commands.rs b/crates/cli/src/commands.rs index 5b1da5a7..bdac905b 100644 --- a/crates/cli/src/commands.rs +++ b/crates/cli/src/commands.rs @@ -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(_)) } } diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index ffbbe492..b5a872b6 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -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!(