From b59bf686c1e10bb8068d89e43779d7777f553c48 Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Sun, 16 Apr 2023 11:00:39 +0200 Subject: Redo command building so that we don't repeat as much, and to make it easier to add new ones --- xtask/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'xtask/src/main.rs') diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 0043474..2f35079 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -356,9 +356,7 @@ fn command_parser( | CargoCommand::Doc { .. } | CargoCommand::Test { .. } | CargoCommand::Book { .. } - | CargoCommand::ExampleSize { .. } - | CargoCommand::BuildInDir { .. } - | CargoCommand::CheckInDir { .. } => { + | CargoCommand::ExampleSize { .. } => { let cargo_result = run_command(command, output_mode)?; Ok(cargo_result) } -- cgit v1.2.3