From a97be7f59dd06a4f82c317e68006fcf36c5b8ff4 Mon Sep 17 00:00:00 2001 From: Lino Le Van <11367844+lino-levan@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:38:56 -0800 Subject: [PATCH] chore: fmt --- crates/cli/src/main.rs | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 57c2b3be96a87cabd8b8d15e3f93d23187d49b47..71fb8a66177f07745032e204a35c2d52a7b6306b 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -90,31 +90,25 @@ fn main() -> Result<()> { let rt = get_runtime(&target); let command = match rt.as_str() { - "deno" => { - std::process::Command::new("deno") - .arg("run") - .arg("-A") - .arg(temp_file) - .spawn() - .expect("Failed to execute process") - } - "node" => { - std::process::Command::new("node") - .arg(temp_file) - .spawn() - .expect("Failed to execute process") - } - "bun" => { - std::process::Command::new("bun") - .arg("run") - .arg(temp_file) - .spawn() - .expect("Failed to execute process") - } + "deno" => std::process::Command::new("deno") + .arg("run") + .arg("-A") + .arg(temp_file) + .spawn() + .expect("Failed to execute process"), + "node" => std::process::Command::new("node") + .arg(temp_file) + .spawn() + .expect("Failed to execute process"), + "bun" => std::process::Command::new("bun") + .arg("run") + .arg(temp_file) + .spawn() + .expect("Failed to execute process"), _ => { println!("Unknown runtime: {}", target); } - } + }; command.wait().unwrap(); } -- 2.54.0