From 749966167092ec62bc7c9cd71d67c73b1a330649 Mon Sep 17 00:00:00 2001 From: abhijeetbhagat Date: Tue, 11 Oct 2022 16:43:29 +0530 Subject: [PATCH] fix formatting --- test/integration-test/src/main.rs | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/test/integration-test/src/main.rs b/test/integration-test/src/main.rs index b2ad10be..5a135d3d 100644 --- a/test/integration-test/src/main.rs +++ b/test/integration-test/src/main.rs @@ -21,7 +21,7 @@ enum Command { /// Run one or more tests: ... -- run -t test1 -t test2 Run(RunOptions), /// List all the tests: ... -- list - List + List, } macro_rules! exec_test { @@ -39,22 +39,20 @@ fn main() -> anyhow::Result<()> { let cmd = Command::parse(); match cmd { - Command::Run(opts) => { - match opts.tests { - Some(tests) => { - for t in inventory::iter:: { - if tests.contains(&t.name.into()) { - exec_test!(t) - } - } - } - None => { - for t in inventory::iter:: { + Command::Run(opts) => match opts.tests { + Some(tests) => { + for t in inventory::iter:: { + if tests.contains(&t.name.into()) { exec_test!(t) } } } - } + None => { + for t in inventory::iter:: { + exec_test!(t) + } + } + }, Command::List => { for t in inventory::iter:: { info!("{}", t.name);