Browse Source

Build and not run under the hood when calling `cargo 3ds run`

Cargo fmt
pull/21/head
Steve Cook 2 years ago
parent
commit
1a562d0c1a
  1. 5
      src/command.rs

5
src/command.rs

@ -1,4 +1,4 @@
use clap::{AppSettings, Parser, ValueEnum, Args}; use clap::{AppSettings, Args, Parser, ValueEnum};
use std::fmt::{Display, Formatter}; use std::fmt::{Display, Formatter};
#[derive(Parser)] #[derive(Parser)]
@ -39,8 +39,7 @@ impl CargoCommand {
impl Display for CargoCommand { impl Display for CargoCommand {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
match self { match self {
CargoCommand::Build => write!(f, "build"), CargoCommand::Build | CargoCommand::Run => write!(f, "build"),
CargoCommand::Run => write!(f, "run"),
CargoCommand::Test => write!(f, "test"), CargoCommand::Test => write!(f, "test"),
CargoCommand::Check => write!(f, "check"), CargoCommand::Check => write!(f, "check"),
CargoCommand::Clippy => write!(f, "clippy"), CargoCommand::Clippy => write!(f, "clippy"),

Loading…
Cancel
Save