From 2b7d980eb677374d5bf682ab92484fed2678d05b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 28 Mar 2024 17:35:32 +0000 Subject: [PATCH] Avoid subprocess spawning in the help command --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 67b1a2a..c30128d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,10 +36,9 @@ fn main() { match &cli.command { Some(Commands::RailsHelp {}) => { - let mut child = DockerClient::get_help(&ruby_version, &rails_version) - .spawn() + let status = DockerClient::get_help(&ruby_version, &rails_version) + .status() .expect("Failed to execute process"); - let status = child.wait().expect("failed to wait on child"); assert!(status.success()); }