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()); }