From 1a562d0c1a70878a3086a79db51be8387fe3a271 Mon Sep 17 00:00:00 2001 From: Steve Cook Date: Thu, 21 Jul 2022 02:35:36 -0400 Subject: [PATCH] Build and not run under the hood when calling `cargo 3ds run` Cargo fmt --- src/command.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/command.rs b/src/command.rs index 7a1ecad..1efc74b 100644 --- a/src/command.rs +++ b/src/command.rs @@ -1,4 +1,4 @@ -use clap::{AppSettings, Parser, ValueEnum, Args}; +use clap::{AppSettings, Args, Parser, ValueEnum}; use std::fmt::{Display, Formatter}; #[derive(Parser)] @@ -39,8 +39,7 @@ impl CargoCommand { impl Display for CargoCommand { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { match self { - CargoCommand::Build => write!(f, "build"), - CargoCommand::Run => write!(f, "run"), + CargoCommand::Build | CargoCommand::Run => write!(f, "build"), CargoCommand::Test => write!(f, "test"), CargoCommand::Check => write!(f, "check"), CargoCommand::Clippy => write!(f, "clippy"),